@@ -40,7 +40,7 @@ export type DirectiveHook<
40
40
Arg extends string = string
41
41
> = (
42
42
el : HostElement ,
43
- binding : DirectiveBinding < Value , Arg , Modifiers > ,
43
+ binding : DirectiveBinding < Value , Modifiers , Arg > ,
44
44
vnode : VNode < any , HostElement > ,
45
45
prevVNode : Prev
46
46
) => void
@@ -56,25 +56,25 @@ export interface ObjectDirective<
56
56
Modifiers extends string = string ,
57
57
Arg extends string = string
58
58
> {
59
- created ?: DirectiveHook < HostElement , null , Value , Arg , Modifiers >
60
- beforeMount ?: DirectiveHook < HostElement , null , Value , Arg , Modifiers >
61
- mounted ?: DirectiveHook < HostElement , null , Value , Arg , Modifiers >
59
+ created ?: DirectiveHook < HostElement , null , Value , Modifiers , Arg >
60
+ beforeMount ?: DirectiveHook < HostElement , null , Value , Modifiers , Arg >
61
+ mounted ?: DirectiveHook < HostElement , null , Value , Modifiers , Arg >
62
62
beforeUpdate ?: DirectiveHook <
63
63
HostElement ,
64
64
VNode < any , HostElement > ,
65
65
Value ,
66
- Arg ,
67
- Modifiers
66
+ Modifiers ,
67
+ Arg
68
68
>
69
69
updated ?: DirectiveHook <
70
70
HostElement ,
71
71
VNode < any , HostElement > ,
72
72
Value ,
73
- Arg ,
74
- Modifiers
73
+ Modifiers ,
74
+ Arg
75
75
>
76
- beforeUnmount ?: DirectiveHook < HostElement , null , Value , Arg , Modifiers >
77
- unmounted ?: DirectiveHook < HostElement , null , Value , Arg , Modifiers >
76
+ beforeUnmount ?: DirectiveHook < HostElement , null , Value , Modifiers , Arg >
77
+ unmounted ?: DirectiveHook < HostElement , null , Value , Modifiers , Arg >
78
78
getSSRProps ?: SSRDirectiveHook
79
79
}
80
80
@@ -83,16 +83,16 @@ export type FunctionDirective<
83
83
V = any ,
84
84
Modifiers extends string = string ,
85
85
Arg extends string = string
86
- > = DirectiveHook < HostElement , any , V , Arg , Modifiers >
86
+ > = DirectiveHook < HostElement , any , V , Modifiers , Arg >
87
87
88
88
export type Directive <
89
89
HostElement = any ,
90
90
Value = any ,
91
91
Modifiers extends string = string ,
92
92
Arg extends string = string
93
93
> =
94
- | ObjectDirective < HostElement , Value , Arg , Modifiers >
95
- | FunctionDirective < HostElement , Value , Arg , Modifiers >
94
+ | ObjectDirective < HostElement , Value , Modifiers , Arg >
95
+ | FunctionDirective < HostElement , Value , Modifiers , Arg >
96
96
97
97
export type DirectiveModifiers < K extends string = string > = Record < K , boolean >
98
98
0 commit comments