frontend/app/composables/ExtendedDescription.ts
2025-08-28 07:41:51 +02:00

15 lines
386 B
TypeScript

import type { ExtendedDescription } from "@versia/client/schemas";
import type { z } from "zod";
export const useExtendedDescription = () => {
const store = useAuthStore();
const output = ref(null as z.infer<typeof ExtendedDescription> | null);
store.client.getInstanceExtendedDescription().then((res) => {
output.value = res.data;
});
return output;
};