Skip to content

Commit

Permalink
fix(types): fix nuxt module options default type
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec committed Apr 9, 2020
1 parent b1eb232 commit 97b26c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 = any> = (this: ModuleThis, moduleOptions: T) => Promise<void> | void

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

0 comments on commit 97b26c1

Please sign in to comment.