Commit e2903e9 1 parent ab2a9ed commit e2903e9 Copy full SHA for e2903e9
File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 20
20
"node" : " >=18"
21
21
},
22
22
"scripts" : {
23
- "test" : " xo && c8 ava && tsd"
23
+ "test" : " xo && c8 ava && tsd && tsc "
24
24
},
25
25
"files" : [
26
26
" index.js" ,
72
72
"path-key" : " ^4.0.0" ,
73
73
"tempfile" : " ^5.0.0" ,
74
74
"tsd" : " ^0.31.0" ,
75
+ "typescript" : " ^5.4.5" ,
75
76
"which" : " ^4.0.0" ,
76
77
"xo" : " ^0.58.0"
77
78
},
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ expectType<[]>(unicornsResultSync.pipedFrom);
53
53
54
54
const error = new Error ( '.' ) ;
55
55
if ( error instanceof ExecaError ) {
56
- expectAssignable < ExecaError > ( error ) ;
56
+ expectType < ExecaError < any > > ( error ) ;
57
57
expectType < 'ExecaError' > ( error . name ) ;
58
58
expectType < string > ( error . message ) ;
59
59
expectType < number | undefined > ( error . exitCode ) ;
@@ -75,7 +75,7 @@ if (error instanceof ExecaError) {
75
75
76
76
const errorSync = new Error ( '.' ) ;
77
77
if ( errorSync instanceof ExecaSyncError ) {
78
- expectAssignable < ExecaSyncError > ( errorSync ) ;
78
+ expectType < ExecaSyncError < any > > ( errorSync ) ;
79
79
expectType < 'ExecaSyncError' > ( errorSync . name ) ;
80
80
expectType < string > ( errorSync . message ) ;
81
81
expectType < number | undefined > ( errorSync . exitCode ) ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "module" : "nodenext" ,
4
+ "moduleResolution" : "nodenext" ,
5
+ "target" : "ES2022" ,
6
+ "strict" : true
7
+ } ,
8
+ "files" : [
9
+ "index.d.ts"
10
+ ]
11
+ }
You can’t perform that action at this time.
0 commit comments