mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-25 10:19:07 +01:00
18 lines
346 B
Vue
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> |