File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -325,3 +325,10 @@ if (__NODE_JS__) {
325
325
}
326
326
}
327
327
}
328
+
329
+ export type VModelDirective =
330
+ | typeof vModelText
331
+ | typeof vModelCheckbox
332
+ | typeof vModelSelect
333
+ | typeof vModelRadio
334
+ | typeof vModelDynamic
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ import {
9
9
App ,
10
10
RootHydrateFunction ,
11
11
isRuntimeOnly ,
12
- DefineComponent
12
+ DefineComponent ,
13
+ Directive ,
14
+ Directive ,
15
+ Directive
13
16
} from '@vue/runtime-core'
14
17
import { nodeOps } from './nodeOps'
15
18
import { patchProp , forcePatchProp } from './patchProp'
@@ -19,6 +22,7 @@ import { TransitionProps } from './components/Transition'
19
22
import { TransitionGroupProps } from './components/TransitionGroup'
20
23
import { vShow } from './directives/vShow'
21
24
import { VOnDirective } from './directives/vOn'
25
+ import { VModelDirective } from './directives/vModel'
22
26
23
27
declare module '@vue/reactivity' {
24
28
export interface RefUnwrapBailTypes {
@@ -35,8 +39,13 @@ declare module '@vue/runtime-core' {
35
39
}
36
40
37
41
interface GlobalDirectives {
42
+ // Note: if updating this, also update `types/globalDirectives.d.ts`.
38
43
vShow : typeof vShow
39
44
vOn : VOnDirective
45
+ vBind : VModelDirective
46
+ vIf : Directive < any , boolean >
47
+ VOnce : Directive
48
+ VSlot : Directive
40
49
}
41
50
}
42
51
You can’t perform that action at this time.
0 commit comments