fix: type error

This commit is contained in:
三咲智子 2022-11-28 19:06:00 +08:00
parent 2ff4041489
commit eafcb5111a
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -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)