From: 山吹色御守 <85992002+KazariEX@users.noreply.github.com> Date: Wed, 24 Sep 2025 09:04:51 +0000 (+0800) Subject: fix(types): set dom stub type to `never` instead of `{}` (#13915) X-Git-Tag: v3.5.22~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8620a616eb02a64fe32dd52d9be68e360687ef9d;p=thirdparty%2Fvuejs%2Fcore.git fix(types): set dom stub type to `never` instead of `{}` (#13915) re-fix #11564 --- 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 {