Skip to content

Commit

Permalink
fix(types): nuxt module options can't be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec committed Apr 3, 2020
1 parent ee030c8 commit df8dc96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/types/config/module.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ interface ModuleThis {
[key: string]: any // TBD
}

export type Module<T = Record<string, any>> = (this: ModuleThis, moduleOptions?: T) => Promise<void> | void
export type Module<T = Record<string, any>> = (this: ModuleThis, moduleOptions: T) => Promise<void> | void

export type NuxtConfigurationModule = string | Module | [string | Module, Record<string, any>]

0 comments on commit df8dc96

Please sign in to comment.