File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 "node" : " >=18"
2121 },
2222 "scripts" : {
23- "test" : " xo && c8 ava && tsd"
23+ "test" : " xo && c8 ava && tsd && tsc "
2424 },
2525 "files" : [
2626 " index.js" ,
7272 "path-key" : " ^4.0.0" ,
7373 "tempfile" : " ^5.0.0" ,
7474 "tsd" : " ^0.31.0" ,
75+ "typescript" : " ^5.4.5" ,
7576 "which" : " ^4.0.0" ,
7677 "xo" : " ^0.58.0"
7778 },
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ expectType<[]>(unicornsResultSync.pipedFrom);
5353
5454const error = new Error ( '.' ) ;
5555if ( error instanceof ExecaError ) {
56- expectAssignable < ExecaError > ( error ) ;
56+ expectType < ExecaError < any > > ( error ) ;
5757 expectType < 'ExecaError' > ( error . name ) ;
5858 expectType < string > ( error . message ) ;
5959 expectType < number | undefined > ( error . exitCode ) ;
@@ -75,7 +75,7 @@ if (error instanceof ExecaError) {
7575
7676const errorSync = new Error ( '.' ) ;
7777if ( errorSync instanceof ExecaSyncError ) {
78- expectAssignable < ExecaSyncError > ( errorSync ) ;
78+ expectType < ExecaSyncError < any > > ( errorSync ) ;
7979 expectType < 'ExecaSyncError' > ( errorSync . name ) ;
8080 expectType < string > ( errorSync . message ) ;
8181 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