1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 23:40:07 +00:00

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)