File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ declare namespace readPkg {
19
19
}
20
20
21
21
interface NormalizeOptions extends Options {
22
- readonly normalize : true ;
22
+ readonly normalize ? : true ;
23
23
}
24
24
25
25
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}));
11
11
expectError < Promise < readPkg . NormalizedPackageJson > > (
12
12
readPkg ( { normalize : false } )
13
13
) ;
14
- expectType < Promise < readPkg . PackageJson > > ( readPkg ( { cwd : '.' } ) ) ;
14
+ expectType < Promise < readPkg . NormalizedPackageJson > > ( readPkg ( { cwd : '.' } ) ) ;
15
15
16
16
expectType < readPkg . NormalizedPackageJson > ( readPkg . sync ( ) ) ;
17
17
expectType < readPkg . NormalizedPackageJson > ( readPkg . sync ( { normalize : true } ) ) ;
18
18
expectType < readPkg . PackageJson > ( readPkg . sync ( { normalize : false } ) ) ;
19
19
expectError < 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