File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ declare namespace readPkg {
1919 }
2020
2121 interface NormalizeOptions extends Options {
22- readonly normalize : true ;
22+ readonly normalize ? : true ;
2323 }
2424
2525 type NormalizedPackageJson = PackageJson & normalize . Package ;
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ expectType<Promise<readPkg.PackageJson>>(readPkg({normalize: false}));
1111expectError < Promise < readPkg . NormalizedPackageJson > > (
1212 readPkg ( { normalize : false } )
1313) ;
14- expectType < Promise < readPkg . PackageJson > > ( readPkg ( { cwd : '.' } ) ) ;
14+ expectType < Promise < readPkg . NormalizedPackageJson > > ( readPkg ( { cwd : '.' } ) ) ;
1515
1616expectType < readPkg . NormalizedPackageJson > ( readPkg . sync ( ) ) ;
1717expectType < readPkg . NormalizedPackageJson > ( readPkg . sync ( { normalize : true } ) ) ;
1818expectType < readPkg . PackageJson > ( readPkg . sync ( { normalize : false } ) ) ;
1919expectError < readPkg . NormalizedPackageJson > ( readPkg . sync ( { normalize : false } ) ) ;
20- expectType < readPkg . PackageJson > ( readPkg . sync ( { cwd : '.' } ) ) ;
20+ expectType < readPkg . NormalizedPackageJson > ( readPkg . sync ( { cwd : '.' } ) ) ;
You can’t perform that action at this time.
0 commit comments