fix(types): set dom stub type to `never` instead of `{}` (#13915)

re-fix #11564
This commit is contained in:
山吹色御守 2025-09-24 17:04:51 +08:00 committed by GitHub
parent 2078f8b756
commit 8620a616eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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<T> = typeof globalThis extends { window: unknown } ? T : DomStub
type DomType<T> = typeof globalThis extends { window: unknown } ? T : never
declare module '@vue/reactivity' {
export interface RefUnwrapBailTypes {