Skip to content

Commit 8620a61

Browse files
authored
fix(types): set dom stub type to never instead of {} (#13915)
re-fix #11564
1 parent 2078f8b commit 8620a61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/runtime-dom/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ import type { VModelDirective } from './directives/vModel'
3838
*
3939
* To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
4040
*/
41-
type DomStub = {}
42-
type DomType<T> = typeof globalThis extends { window: unknown } ? T : DomStub
41+
type DomType<T> = typeof globalThis extends { window: unknown } ? T : never
4342

4443
declare module '@vue/reactivity' {
4544
export interface RefUnwrapBailTypes {

0 commit comments

Comments
 (0)