Skip to content

Commit

Permalink
fix: augment @nuxt/schema rather than nuxt/schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultVlacich committed Sep 12, 2024
1 parent a359071 commit 3a5e3bf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/types/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type NuxtSecurityRouteRules = Partial<
& { requestSizeLimiter: RequestSizeLimiter | false }
>

declare module 'nuxt/schema' {
declare module '@nuxt/schema' {
interface NuxtOptions {
security: ModuleOptions
}
Expand All @@ -51,12 +51,6 @@ declare module 'nuxt/schema' {
}
}

declare module '@nuxt/schema' {
interface NuxtHooks {
'nuxt-security:prerenderedHeaders': (prerenderedHeaders: Record<string, Record<string, string>>) => HookResult
}
}

declare module 'nitropack' {
interface NitroRouteConfig {
security?: NuxtSecurityRouteRules;
Expand Down

0 comments on commit 3a5e3bf

Please sign in to comment.