mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
chore: lint
This commit is contained in:
parent
45d92d67ee
commit
cab9e5c356
@ -58,10 +58,10 @@ function _defineNuxtModule<
|
|||||||
inlineOptions?: Partial<TOptions>,
|
inlineOptions?: Partial<TOptions>,
|
||||||
nuxt: Nuxt = useNuxt(),
|
nuxt: Nuxt = useNuxt(),
|
||||||
): Promise<
|
): Promise<
|
||||||
TWith extends true
|
TWith extends true
|
||||||
? ResolvedModuleOptions<TOptions, TOptionsDefaults>
|
? ResolvedModuleOptions<TOptions, TOptionsDefaults>
|
||||||
: TOptions
|
: TOptions
|
||||||
> {
|
> {
|
||||||
const nuxtConfigOptionsKey = module.meta.configKey || module.meta.name
|
const nuxtConfigOptionsKey = module.meta.configKey || module.meta.name
|
||||||
|
|
||||||
const nuxtConfigOptions: Partial<TOptions> = nuxtConfigOptionsKey && nuxtConfigOptionsKey in nuxt.options ? nuxt.options[<keyof NuxtOptions> nuxtConfigOptionsKey] : {}
|
const nuxtConfigOptions: Partial<TOptions> = nuxtConfigOptionsKey && nuxtConfigOptionsKey in nuxt.options ? nuxt.options[<keyof NuxtOptions> nuxtConfigOptionsKey] : {}
|
||||||
|
Loading…
Reference in New Issue
Block a user