1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-20 09:38:00 +09:00
elk/composables/client.ts

11 lines
254 B
TypeScript
Raw Normal View History

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