@@ -28,22 +28,22 @@ import { pauseTracking, resetTracking, traverse } from '@vue/reactivity'
28
28
export interface DirectiveBinding <
29
29
Value = any ,
30
30
Modifiers extends string = string ,
31
- Arg extends string = string ,
31
+ Arg = any ,
32
32
> {
33
33
instance : ComponentPublicInstance | Record < string , any > | null
34
34
value : Value
35
35
oldValue : Value | null
36
36
arg ?: Arg
37
37
modifiers : DirectiveModifiers < Modifiers >
38
- dir : ObjectDirective < any , Value >
38
+ dir : ObjectDirective < any , Value , Modifiers , Arg >
39
39
}
40
40
41
41
export type DirectiveHook <
42
42
HostElement = any ,
43
43
Prev = VNode < any , HostElement > | null ,
44
44
Value = any ,
45
45
Modifiers extends string = string ,
46
- Arg extends string = string ,
46
+ Arg = any ,
47
47
> = (
48
48
el : HostElement ,
49
49
binding : DirectiveBinding < Value , Modifiers , Arg > ,
@@ -54,7 +54,7 @@ export type DirectiveHook<
54
54
export type SSRDirectiveHook <
55
55
Value = any ,
56
56
Modifiers extends string = string ,
57
- Arg extends string = string ,
57
+ Arg = any ,
58
58
> = (
59
59
binding : DirectiveBinding < Value , Modifiers , Arg > ,
60
60
vnode : VNode ,
@@ -64,7 +64,7 @@ export interface ObjectDirective<
64
64
HostElement = any ,
65
65
Value = any ,
66
66
Modifiers extends string = string ,
67
- Arg extends string = string ,
67
+ Arg = any ,
68
68
> {
69
69
/**
70
70
* @internal without this, ts-expect-error in directives.test-d.ts somehow
@@ -99,14 +99,14 @@ export type FunctionDirective<
99
99
HostElement = any ,
100
100
V = any ,
101
101
Modifiers extends string = string ,
102
- Arg extends string = string ,
102
+ Arg = any ,
103
103
> = DirectiveHook < HostElement , any , V , Modifiers , Arg >
104
104
105
105
export type Directive <
106
106
HostElement = any ,
107
107
Value = any ,
108
108
Modifiers extends string = string ,
109
- Arg extends string = string ,
109
+ Arg = any ,
110
110
> =
111
111
| ObjectDirective < HostElement , Value , Modifiers , Arg >
112
112
| FunctionDirective < HostElement , Value , Modifiers , Arg >
@@ -125,8 +125,8 @@ export function validateDirectiveName(name: string): void {
125
125
export type DirectiveArguments = Array <
126
126
| [ Directive | undefined ]
127
127
| [ Directive | undefined , any ]
128
- | [ Directive | undefined , any , string ]
129
- | [ Directive | undefined , any , string | undefined , DirectiveModifiers ]
128
+ | [ Directive | undefined , any , any ]
129
+ | [ Directive | undefined , any , any , DirectiveModifiers ]
130
130
>
131
131
132
132
/**
0 commit comments