From eafcb5111a9cc0a61b42d64c7fe8d556cda018ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Mon, 28 Nov 2022 19:06:00 +0800 Subject: [PATCH] fix: type error --- composables/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/client.ts b/composables/client.ts index ae74be98..2dbac907 100644 --- a/composables/client.ts +++ b/composables/client.ts @@ -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)