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__) {
325325 }
326326 }
327327}
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 {
99 App ,
1010 RootHydrateFunction ,
1111 isRuntimeOnly ,
12- DefineComponent
12+ DefineComponent ,
13+ Directive ,
14+ Directive ,
15+ Directive
1316} from '@vue/runtime-core'
1417import { nodeOps } from './nodeOps'
1518import { patchProp , forcePatchProp } from './patchProp'
@@ -19,6 +22,7 @@ import { TransitionProps } from './components/Transition'
1922import { TransitionGroupProps } from './components/TransitionGroup'
2023import { vShow } from './directives/vShow'
2124import { VOnDirective } from './directives/vOn'
25+ import { VModelDirective } from './directives/vModel'
2226
2327declare module '@vue/reactivity' {
2428 export interface RefUnwrapBailTypes {
@@ -35,8 +39,13 @@ declare module '@vue/runtime-core' {
3539 }
3640
3741 interface GlobalDirectives {
42+ // Note: if updating this, also update `types/globalDirectives.d.ts`.
3843 vShow : typeof vShow
3944 vOn : VOnDirective
45+ vBind : VModelDirective
46+ vIf : Directive < any , boolean >
47+ VOnce : Directive
48+ VSlot : Directive
4049 }
4150}
4251
You can’t perform that action at this time.
0 commit comments