mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-20 07:49:57 +00:00
fix: type error
This commit is contained in:
parent
2ff4041489
commit
eafcb5111a
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
import type { MastoClient } from 'masto'
|
import type { MastoClient } from 'masto'
|
||||||
|
|
||||||
export const useMasto = () => useNuxtApp().$masto.api
|
export const useMasto = () => useNuxtApp().$masto.api as MastoClient
|
||||||
|
|
||||||
export const setMasto = (masto: MastoClient) => {
|
export const setMasto = (masto: MastoClient) => {
|
||||||
useNuxtApp().$masto?.replace(masto)
|
useNuxtApp().$masto?.replace(masto)
|
||||||
|
|
Loading…
Reference in a new issue