File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,18 @@ declare namespace readPkg {
88
99 @default true
1010 */
11- normalize ?: boolean ;
11+ readonly normalize ?: boolean ;
1212
1313 /**
1414 Current working directory.
1515
1616 @default process.cwd()
1717 */
18- cwd ?: string ;
18+ readonly cwd ?: string ;
1919 }
2020
2121 interface NormalizeOptions extends Options {
22- 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 . PackageJson > > ( 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 . PackageJson > ( readPkg . sync ( { cwd : '.' } ) ) ;
Original file line number Diff line number Diff line change 2727 " fs" ,
2828 " graceful" ,
2929 " load" ,
30- " pkg" ,
3130 " package" ,
3231 " normalize"
3332 ],
You can’t perform that action at this time.
0 commit comments