mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(schema, nuxt3): export meta types from schema (#2103)
This commit is contained in:
parent
c3b72a6ee2
commit
834532bf71
@ -1,7 +1,7 @@
|
||||
import { isFunction } from '@vue/shared'
|
||||
import { computed } from '@vue/reactivity'
|
||||
import type { ComputedGetter } from '@vue/reactivity'
|
||||
import type { MetaObject } from '../../../../schema/src/types/meta'
|
||||
import type { MetaObject } from '@nuxt/schema'
|
||||
import { useNuxtApp } from '#app'
|
||||
|
||||
/**
|
||||
|
@ -1,2 +1,2 @@
|
||||
export * from './composables'
|
||||
export * from '../../../../schema/src/types/meta'
|
||||
export type { MetaObject } from '@nuxt/schema'
|
||||
|
@ -4,6 +4,7 @@ import './types/global'
|
||||
export * from './types/config'
|
||||
export * from './types/hooks'
|
||||
export * from './types/module'
|
||||
export * from './types/meta'
|
||||
export * from './types/nuxt'
|
||||
export * from './types/components'
|
||||
export * from './types/imports'
|
||||
|
@ -14,11 +14,11 @@ export interface MetaObject extends Record<string, any> {
|
||||
viewport?: string
|
||||
|
||||
/** Each item in the array maps to a newly-created `<meta>` element, where object properties map to attributes. */
|
||||
meta: Array<Record<string, any>>
|
||||
meta?: Array<Record<string, any>>
|
||||
/** Each item in the array maps to a newly-created `<link>` element, where object properties map to attributes. */
|
||||
link: Array<Record<string, any>>
|
||||
link?: Array<Record<string, any>>
|
||||
/** Each item in the array maps to a newly-created `<style>` element, where object properties map to attributes. */
|
||||
style: Array<Record<string, any>>
|
||||
style?: Array<Record<string, any>>
|
||||
/** Each item in the array maps to a newly-created `<script>` element, where object properties map to attributes. */
|
||||
script: Array<Record<string, any>>
|
||||
script?: Array<Record<string, any>>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user