File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ function outputResults(
259259 report : CompareJsonEntry [ ] ,
260260 opts : Options ,
261261 exitWithError : boolean ,
262- ) : void {
262+ ) : never {
263263 if ( opts . json ) {
264264 console . log ( JSON . stringify ( report , null , 2 ) ) ;
265265 }
Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ function createCategoryFilter(
4242 return ( category : Category ) => ! onlySet || onlySet . has ( category ) ;
4343}
4444
45+ interface ParsedAndFilteredEnv {
46+ current : Record < string , string > ;
47+ example : Record < string , string > ;
48+ currentKeys : string [ ] ;
49+ exampleKeys : string [ ] ;
50+ }
51+
4552/**
4653 * Parses and filters the environment and example files.
4754 * @param envPath The path to the .env file
@@ -53,7 +60,7 @@ function parseAndFilter(
5360 envPath : string ,
5461 examplePath : string ,
5562 opts : ComparisonOptions ,
56- ) {
63+ ) : ParsedAndFilteredEnv {
5764 const currentFull = parseEnvFile ( envPath ) ;
5865 const exampleFull = parseEnvFile ( examplePath ) ;
5966
@@ -121,7 +128,7 @@ function findDuplicates(
121128 */
122129export async function compareMany (
123130 pairs : FilePair [ ] ,
124- opts : ComparisonOptions ,
131+ opts : Readonly < ComparisonOptions > ,
125132) : Promise < ComparisonResult > {
126133 let exitWithError = false ;
127134
You can’t perform that action at this time.
0 commit comments