chore(nuxt): remove redundant type (#29810)

This commit is contained in:
xjccc 2024-11-06 17:36:58 +08:00 committed by Daniel Roe
parent 3db1a7d968
commit 7936158019
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -4,7 +4,7 @@ import { addBuildPlugin, addComponent, addPlugin, addTemplate, addTypeTemplate,
import { dirname, join, relative, resolve } from 'pathe'
import { genImport, genObjectFromRawEntries, genString } from 'knitwork'
import { joinURL } from 'ufo'
import type { Nuxt, NuxtApp, NuxtPage } from 'nuxt/schema'
import type { NuxtPage } from 'nuxt/schema'
import { createRoutesContext } from 'unplugin-vue-router'
import { resolveOptions } from 'unplugin-vue-router/options'
import type { EditableTreeNode, Options as TypedRouterOptions } from 'unplugin-vue-router'
@ -559,7 +559,7 @@ export default defineNuxtModule({
addTypeTemplate({
filename: 'types/layouts.d.ts',
getContents: ({ nuxt, app }: { nuxt: Nuxt, app: NuxtApp }) => {
getContents: ({ nuxt, app }) => {
const composablesFile = relative(join(nuxt.options.buildDir, 'types'), resolve(runtimeDir, 'composables'))
return [
'import type { ComputedRef, MaybeRef } from \'vue\'',