import type { Client } from "@versia/client"; import type { ExtendedDescription } from "@versia/client/schemas"; import type { z } from "zod"; export const useExtendedDescription = (client: MaybeRef) => { if (!ref(client).value) { return ref(null as z.infer | null); } const output = ref(null as z.infer | null); ref(client) .value?.getInstanceExtendedDescription() .then((res) => { output.value = res.data; }); return output; };