mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
Compare commits
2 Commits
b0ecaee59a
...
13bcf24cc0
Author | SHA1 | Date | |
---|---|---|---|
|
13bcf24cc0 | ||
|
ba29fc031a |
@ -65,7 +65,7 @@ function _defineNuxtModule<
|
||||
|
||||
const optionsDefaults: TOptionsDefaults =
|
||||
module.defaults instanceof Function
|
||||
? module.defaults(nuxt)
|
||||
? await module.defaults(nuxt)
|
||||
: module.defaults ?? <TOptionsDefaults> {}
|
||||
|
||||
let options = defu(inlineOptions, nuxtConfigOptions, optionsDefaults)
|
||||
|
@ -64,7 +64,7 @@ export interface ModuleDefinition<
|
||||
TWith extends boolean,
|
||||
> {
|
||||
meta?: ModuleMeta
|
||||
defaults?: TOptionsDefaults | ((nuxt: Nuxt) => TOptionsDefaults)
|
||||
defaults?: TOptionsDefaults | ((nuxt: Nuxt) => Awaitable<TOptionsDefaults>)
|
||||
schema?: TOptions
|
||||
hooks?: Partial<NuxtHooks>
|
||||
setup?: (
|
||||
|
Loading…
Reference in New Issue
Block a user