elk/composables/client.ts

11 lines
254 B
TypeScript
Raw Normal View History

2022-11-14 03:20:07 +01:00
import type { MastoClient } from 'masto'
2022-11-15 16:48:23 +01:00
import type { AppStore } from '~~/plugins/store.client'
2022-11-13 06:34:43 +01:00
2022-11-14 03:20:07 +01:00
export function useMasto() {
return inject('masto') as Promise<MastoClient>
2022-11-13 06:34:43 +01:00
}
2022-11-15 16:48:23 +01:00
export function useAppStore() {
return inject('app-store') as AppStore
}