1
1
import 'vue/jsx'
2
2
3
3
// Types
4
- import type { Events , VNode } from 'vue'
4
+ import type { ComponentInjectOptions , ComponentOptionsMixin , EmitsOptions , SlotsType } from 'vue'
5
+ import type { ComputedOptions , Events , MethodOptions , VNode } from 'vue'
5
6
import type { TouchStoredHandlers } from './directives/touch'
6
7
7
8
declare global {
@@ -98,7 +99,7 @@ declare global {
98
99
}
99
100
}
100
101
101
- declare module '@ vue/runtime-core ' {
102
+ declare module 'vue' {
102
103
export interface ComponentCustomProperties {
103
104
_ : ComponentInternalInstance
104
105
}
@@ -112,8 +113,21 @@ declare module '@vue/runtime-core' {
112
113
aliasName ?: string
113
114
}
114
115
115
- // eslint-disable-next-line max-len
116
- export interface ComponentOptionsBase < Props , RawBindings , D , C extends ComputedOptions , M extends MethodOptions , Mixin extends ComponentOptionsMixin , Extends extends ComponentOptionsMixin , E extends EmitsOptions , EE extends string = string , Defaults = { } > {
116
+ export interface ComponentOptionsBase <
117
+ Props ,
118
+ RawBindings ,
119
+ D ,
120
+ C extends ComputedOptions ,
121
+ M extends MethodOptions ,
122
+ Mixin extends ComponentOptionsMixin ,
123
+ Extends extends ComponentOptionsMixin ,
124
+ E extends EmitsOptions ,
125
+ EE extends string = string ,
126
+ Defaults = { } ,
127
+ I extends ComponentInjectOptions = { } ,
128
+ II extends string = string ,
129
+ S extends SlotsType = { }
130
+ > {
117
131
aliasName ?: string
118
132
}
119
133
@@ -125,9 +139,7 @@ declare module '@vue/runtime-core' {
125
139
ctx : ComponentInternalInstance | null
126
140
ssContent : VNode | null
127
141
}
128
- }
129
142
130
- declare module '@vue/runtime-dom' {
131
143
type UnionToIntersection < U > =
132
144
( U extends any ? ( k : U ) => void : never ) extends ( ( k : infer I ) => void ) ? I : never
133
145
0 commit comments