fix: type error

zio/stable
三咲智子 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
1 changed files with 1 additions and 1 deletions

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)