jointrashposs/pages/docs/for-developers/api/endpoints/[...slug].vue
2023-07-18 01:44:06 +09:00

18 lines
346 B
Vue

<template>
<div>
{{ keys }}
</div>
</template>
<script setup lang="ts">
import { Endpoints } from 'misskey-js';
function getEndpointKeys<T extends Record<string, unknown>>(obj: T): Array<keyof T> {
return Object.keys(obj) as Array<keyof T>;
}
const keys = getEndpointKeys({} as Endpoints)
</script>
<style scoped>
</style>