mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(schema): exclude functions from DeepPartial
(#6176)
This commit is contained in:
parent
1230268a7b
commit
12ebe3aeb6
@ -13,7 +13,7 @@ export default {
|
||||
* Properties that will be set directly on `Vue.config` for vue@2.
|
||||
*
|
||||
* @see [vue@2 Documentation](https://v2.vuejs.org/v2/api/#Global-Config)
|
||||
* @type {import('vue/types/vue').VueConfiguration}
|
||||
* @type {typeof import('vue/types/vue').VueConfiguration}
|
||||
* @version 2
|
||||
*/
|
||||
config: {
|
||||
@ -23,7 +23,7 @@ export default {
|
||||
/**
|
||||
* Options for the Vue compiler that will be passed at build time
|
||||
* @see [documentation](https://vuejs.org/api/application.html#app-config-compileroptions)
|
||||
* @type {import('@vue/compiler-core').CompilerOptions}
|
||||
* @type {typeof import('@vue/compiler-core').CompilerOptions}
|
||||
* @version 3
|
||||
*/
|
||||
compilerOptions: {}
|
||||
@ -164,7 +164,7 @@ export default {
|
||||
* Options to pass directly to `vue-meta`.
|
||||
*
|
||||
* @see [documentation](https://vue-meta.nuxtjs.org/api/#plugin-options).
|
||||
* @type {import('vue-meta').VueMetaOptions}
|
||||
* @type {typeof import('vue-meta').VueMetaOptions}
|
||||
* @version 2
|
||||
*/
|
||||
vueMeta: null,
|
||||
@ -173,7 +173,7 @@ export default {
|
||||
* Set default configuration for `<head>` on every page.
|
||||
*
|
||||
* @see [documentation](https://vue-meta.nuxtjs.org/api/#metainfo-properties) for specifics.
|
||||
* @type {import('vue-meta').MetaInfo}
|
||||
* @type {typeof import('vue-meta').MetaInfo}
|
||||
* @version 2
|
||||
*/
|
||||
head: {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ConfigSchema } from '../../schema/config'
|
||||
import type { ResolvedConfig } from 'c12'
|
||||
|
||||
type DeepPartial<T> = T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T
|
||||
type DeepPartial<T> = T extends Function ? T : T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T
|
||||
|
||||
/** User configuration in `nuxt.config` file */
|
||||
export interface NuxtConfig extends DeepPartial<Omit<ConfigSchema, 'vite'>> {
|
||||
|
Loading…
Reference in New Issue
Block a user