Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module): correct runtime nuxt hook module path #2282

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ declare module '@nuxt/schema' {
}
}

declare module '#app' {
declare module '#app/nuxt' {
interface RuntimeNuxtHooks {
'i18n:beforeLocaleSwitch': <Context = unknown>(
params: LocaleSwitch & {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
"paths": {
"#app": ["./node_modules/nuxt/dist/app"],
"#app/*": ["./node_modules/nuxt/dist/app/*"],
"#imports": ["./.nuxt/imports.d.ts"],
"#pages": ["./node_modules/nuxt/dist/pages/runtime/index.d.ts"],
"#head": ["./node_modules/nuxt/dist/index.d.ts"],
Expand Down