From 7936158019e6d1c29cbbf1744f06619c3064beda Mon Sep 17 00:00:00 2001 From: xjccc <546534045@qq.com> Date: Wed, 6 Nov 2024 17:36:58 +0800 Subject: [PATCH] chore(nuxt): remove redundant type (#29810) --- packages/nuxt/src/pages/module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/pages/module.ts b/packages/nuxt/src/pages/module.ts index 7d36915655..884882a416 100644 --- a/packages/nuxt/src/pages/module.ts +++ b/packages/nuxt/src/pages/module.ts @@ -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\'',