fix: type error
This commit is contained in:
parent
2ff4041489
commit
eafcb5111a
@ -1,6 +1,6 @@
|
||||
import type { MastoClient } from 'masto'
|
||||
|
||||
export const useMasto = () => useNuxtApp().$masto.api
|
||||
export const useMasto = () => useNuxtApp().$masto.api as MastoClient
|
||||
|
||||
export const setMasto = (masto: MastoClient) => {
|
||||
useNuxtApp().$masto?.replace(masto)
|
||||
|
Loading…
Reference in New Issue
Block a user