chore: lint

This commit is contained in:
Daniel Roe 2024-08-08 11:20:29 +01:00
parent 45d92d67ee
commit cab9e5c356
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -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] : {}