From c9c0171b2d0f1a38ede6ba06bc6b815300ebc687 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Mon, 7 Feb 2022 19:44:48 +0100 Subject: [PATCH] refactor: rename `options.layers` to `options._extends` (#3109) --- packages/kit/src/loader/config.ts | 3 +-- packages/schema/src/types/config.ts | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/kit/src/loader/config.ts b/packages/kit/src/loader/config.ts index ebcdf49ef3..7e48c71ed9 100644 --- a/packages/kit/src/loader/config.ts +++ b/packages/kit/src/loader/config.ts @@ -37,8 +37,7 @@ export async function loadNuxtConfig (opts: LoadNuxtConfigOptions): Promise[] -} - type DeepPartial = T extends Record ? { [P in keyof T]?: DeepPartial | T[P] } : T /** User configuration in `nuxt.config` file */ export interface NuxtConfig extends DeepPartial { } +/** Normalized Nuxt options available as `nuxt.options.*` */ +export interface NuxtOptions extends ConfigSchema { + _extends: ResolvedConfig[] +} export interface PublicRuntimeConfig extends Record { } export interface PrivateRuntimeConfig extends PublicRuntimeConfig { }