From 8620a616eb02a64fe32dd52d9be68e360687ef9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=B1=B1=E5=90=B9=E8=89=B2=E5=BE=A1=E5=AE=88?= <85992002+KazariEX@users.noreply.github.com> Date: Wed, 24 Sep 2025 17:04:51 +0800 Subject: [PATCH] fix(types): set dom stub type to `never` instead of `{}` (#13915) re-fix #11564 --- packages/runtime-dom/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/runtime-dom/src/index.ts b/packages/runtime-dom/src/index.ts index 6abfbb52e..9b8782733 100644 --- a/packages/runtime-dom/src/index.ts +++ b/packages/runtime-dom/src/index.ts @@ -38,8 +38,7 @@ import type { VModelDirective } from './directives/vModel' * * To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`. */ -type DomStub = {} -type DomType = typeof globalThis extends { window: unknown } ? T : DomStub +type DomType = typeof globalThis extends { window: unknown } ? T : never declare module '@vue/reactivity' { export interface RefUnwrapBailTypes { -- 2.47.3