elk/composables/client.ts

6 lines
122 B
TypeScript
Raw Normal View History

2022-11-14 02:20:07 +00:00
import type { MastoClient } from 'masto'
2022-11-13 05:34:43 +00:00
2022-11-14 02:20:07 +00:00
export function useMasto() {
return inject('masto') as Promise<MastoClient>
2022-11-13 05:34:43 +00:00
}