elk/composables/client.ts

8 wiersze
202 B
TypeScript

import type { MastoClient } from 'masto'
export const useMasto = () => useNuxtApp().$masto.api as MastoClient
export const setMasto = (masto: MastoClient) => {
useNuxtApp().$masto?.replace(masto)
}