File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 64
64
"remark-preset-wooorm" : " ^10.0.0" ,
65
65
"tsd" : " ^0.31.0" ,
66
66
"type-coverage" : " ^2.0.0" ,
67
- "typescript" : " ~5.4 .0" ,
67
+ "typescript" : " ^5.0 .0" ,
68
68
"xo" : " ^0.58.0"
69
69
},
70
70
"scripts" : {
Original file line number Diff line number Diff line change @@ -29,11 +29,23 @@ const result = file
29
29
*/
30
30
function ( $0 , $1 ) {
31
31
console . log (
32
- 'Fixed `use` overload with plugin, and *non-optional* parameters'
32
+ 'Fixed `use` overload with plugin, and *non-optional* parameters (TS pre 5.4) '
33
33
)
34
34
return '...parameters: ' + $1 + ' | [boolean]'
35
35
}
36
36
)
37
+ . replace (
38
+ / \. \. \. p a r a m e t e r s : \( P a r a m e t e r s \| \[ b o o l e a n ] \) \[ ] / ,
39
+ /**
40
+ * @returns {string }
41
+ */
42
+ function ( ) {
43
+ console . log (
44
+ 'Fixed `use` overload with plugin, and *non-optional* parameters (TS 5.5+)'
45
+ )
46
+ return '...parameters: Parameters | [boolean]'
47
+ }
48
+ )
37
49
38
50
if ( file === result ) {
39
51
console . error (
You can’t perform that action at this time.
0 commit comments