Skip to content

Commit

Permalink
fix: add type annotation to fetchService
Browse files Browse the repository at this point in the history
  • Loading branch information
hkp22 committed Aug 30, 2024
1 parent 1cbcc69 commit 86bfb28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { $Fetch } from 'ofetch';
import createFetchService from './services/createFetchService';
import { useCurrentUser } from './composables/useCurrentUser';
import { createLogger } from './helpers/createLogger';
Expand All @@ -8,7 +9,7 @@ export default defineNuxtPlugin(async () => {
const options = useSanctumOptions();
const user = useCurrentUser();
const logger = createLogger(options.logLevel);
const fetchService = createFetchService(logger);
const fetchService: $Fetch = createFetchService(logger);

if (!user.value) {
try {
Expand Down

0 comments on commit 86bfb28

Please sign in to comment.