@@ -36,27 +36,45 @@ describe('custom', () => {
36
36
value : number
37
37
oldValue : number | null
38
38
arg ?: 'Arg'
39
- modifiers : Partial < Record < 'a' | 'b' , boolean > >
39
+ modifiers : Record < 'a' | 'b' , boolean >
40
+ // @ts -expect-error
40
41
} > ( testDirective < number , 'a' , 'Arg' > ( ) )
41
42
42
43
expectType < {
43
44
value : number
44
45
oldValue : number | null
45
46
arg ?: 'Arg'
46
47
modifiers : Partial < Record < 'a' | 'b' , boolean > >
47
- } > ( testDirective < number , 'a' | 'b' , 'Arg' > ( ) )
48
+ // @ts -expect-error
49
+ } > ( testDirective < number , 'a' | 'b' , 'Argx' > ( ) )
48
50
49
51
expectType < {
50
52
value : number
51
53
oldValue : number | null
52
54
arg ?: 'Arg'
53
55
modifiers : Partial < Record < 'a' | 'b' , boolean > >
54
- } > ( testDirective < number , 'a' | 'b' , 'Arg' > ( ) )
56
+ // @ts -expect-error
57
+ } > ( testDirective < string , 'a' | 'b' , 'Arg' > ( ) )
55
58
56
59
expectType < {
57
60
value : number
58
61
oldValue : number | null
59
62
arg ?: HTMLElement
60
63
modifiers : Partial < Record < 'a' | 'b' , boolean > >
61
64
} > ( testDirective < number , 'a' | 'b' , HTMLElement > ( ) )
65
+
66
+ expectType < {
67
+ value : number
68
+ oldValue : number | null
69
+ arg ?: HTMLElement
70
+ modifiers : Partial < Record < 'a' | 'b' , boolean > >
71
+ // @ts -expect-error
72
+ } > ( testDirective < number , 'a' | 'b' , string > ( ) )
73
+
74
+ expectType < {
75
+ value : number
76
+ oldValue : number | null
77
+ arg ?: HTMLElement
78
+ modifiers : Partial < Record < 'a' | 'b' , boolean > >
79
+ } > ( testDirective < number , 'a' | 'b' > ( ) )
62
80
} )
0 commit comments