Skip to content

Commit

Permalink
fix: assert return type of nuxt app
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 17, 2023
1 parent 8907546 commit 082ed8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/nuxt.ts
Expand Up @@ -435,7 +435,7 @@ export function callWithNuxt<T extends (...args: any[]) => any> (nuxt: NuxtApp |
/**
* Returns the current Nuxt instance.
*/
export function useNuxtApp () {
export function useNuxtApp (): NuxtApp {
let nuxtAppInstance
if (hasInjectionContext()) {
nuxtAppInstance = getCurrentInstance()?.appContext.app.$nuxt
Expand Down

0 comments on commit 082ed8f

Please sign in to comment.