fix(schema, nuxt3): export meta types from schema (#2103)

This commit is contained in:
Daniel Roe 2021-11-23 10:16:11 +00:00 committed by GitHub
parent c3b72a6ee2
commit 834532bf71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import { isFunction } from '@vue/shared' import { isFunction } from '@vue/shared'
import { computed } from '@vue/reactivity' import { computed } from '@vue/reactivity'
import type { ComputedGetter } 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' import { useNuxtApp } from '#app'
/** /**

View File

@ -1,2 +1,2 @@
export * from './composables' export * from './composables'
export * from '../../../../schema/src/types/meta' export type { MetaObject } from '@nuxt/schema'

View File

@ -4,6 +4,7 @@ import './types/global'
export * from './types/config' export * from './types/config'
export * from './types/hooks' export * from './types/hooks'
export * from './types/module' export * from './types/module'
export * from './types/meta'
export * from './types/nuxt' export * from './types/nuxt'
export * from './types/components' export * from './types/components'
export * from './types/imports' export * from './types/imports'

View File

@ -14,11 +14,11 @@ export interface MetaObject extends Record<string, any> {
viewport?: string viewport?: string
/** Each item in the array maps to a newly-created `<meta>` element, where object properties map to attributes. */ /** 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. */ /** 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. */ /** 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. */ /** 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>>
} }