@@ -28,22 +28,22 @@ import { pauseTracking, resetTracking, traverse } from '@vue/reactivity'
2828export interface DirectiveBinding <
2929 Value = any ,
3030 Modifiers extends string = string ,
31- Arg extends string = string ,
31+ Arg = any ,
3232> {
3333 instance : ComponentPublicInstance | Record < string , any > | null
3434 value : Value
3535 oldValue : Value | null
3636 arg ?: Arg
3737 modifiers : DirectiveModifiers < Modifiers >
38- dir : ObjectDirective < any , Value >
38+ dir : ObjectDirective < any , Value , Modifiers , Arg >
3939}
4040
4141export type DirectiveHook <
4242 HostElement = any ,
4343 Prev = VNode < any , HostElement > | null ,
4444 Value = any ,
4545 Modifiers extends string = string ,
46- Arg extends string = string ,
46+ Arg = any ,
4747> = (
4848 el : HostElement ,
4949 binding : DirectiveBinding < Value , Modifiers , Arg > ,
@@ -54,7 +54,7 @@ export type DirectiveHook<
5454export type SSRDirectiveHook <
5555 Value = any ,
5656 Modifiers extends string = string ,
57- Arg extends string = string ,
57+ Arg = any ,
5858> = (
5959 binding : DirectiveBinding < Value , Modifiers , Arg > ,
6060 vnode : VNode ,
@@ -64,7 +64,7 @@ export interface ObjectDirective<
6464 HostElement = any ,
6565 Value = any ,
6666 Modifiers extends string = string ,
67- Arg extends string = string ,
67+ Arg = any ,
6868> {
6969 /**
7070 * @internal without this, ts-expect-error in directives.test-d.ts somehow
@@ -99,14 +99,14 @@ export type FunctionDirective<
9999 HostElement = any ,
100100 V = any ,
101101 Modifiers extends string = string ,
102- Arg extends string = string ,
102+ Arg = any ,
103103> = DirectiveHook < HostElement , any , V , Modifiers , Arg >
104104
105105export type Directive <
106106 HostElement = any ,
107107 Value = any ,
108108 Modifiers extends string = string ,
109- Arg extends string = string ,
109+ Arg = any ,
110110> =
111111 | ObjectDirective < HostElement , Value , Modifiers , Arg >
112112 | FunctionDirective < HostElement , Value , Modifiers , Arg >
@@ -125,8 +125,8 @@ export function validateDirectiveName(name: string): void {
125125export type DirectiveArguments = Array <
126126 | [ Directive | undefined ]
127127 | [ 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 ]
130130>
131131
132132/**
0 commit comments