mirror of https://github.com/vuejs/core.git
fix(types): set dom stub type to `never` instead of `{}` (#13915)
re-fix #11564
This commit is contained in:
parent
2078f8b756
commit
8620a616eb
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue