Skip to content

Commit

Permalink
fix: assert $auth type
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Dec 6, 2023
1 parent f1f04c7 commit b570be7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/runtime/plugin.ts
@@ -1,9 +1,6 @@
import {
defineNuxtPlugin,
shallowRef,
useState,
useRequestEvent,
} from '#imports'
import { defineNuxtPlugin, shallowRef, useState, useRequestEvent } from '#imports'
// TODO: fix issue in `mkdist`
import type { Plugin } from 'nuxt/app'
import type { AuthState } from './types'

export default defineNuxtPlugin(async () => {
Expand All @@ -21,4 +18,4 @@ export default defineNuxtPlugin(async () => {
auth: state.value,
},
}
})
}) as Plugin<{ auth: AuthState }>

0 comments on commit b570be7

Please sign in to comment.