Skip to content

Commit

Permalink
Provide type for filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdailis committed Dec 13, 2023
1 parent 8adb695 commit 284070b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utilities/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4386,7 +4386,11 @@ const effects = {
},
};

function replacePaths(modelParameters: ParametersMap | null, simArgs: ArgumentsMap, filenames: any): ArgumentsMap {
function replacePaths(
modelParameters: ParametersMap | null,
simArgs: ArgumentsMap,
filenames: Record<string, string>,
): ArgumentsMap {
if (modelParameters === null) {
return simArgs;
}
Expand All @@ -4402,7 +4406,7 @@ function replacePaths(modelParameters: ParametersMap | null, simArgs: ArgumentsM
return result;
}

function replacePathsHelper(schema: ValueSchema, arg: Argument, filenames: any) {
function replacePathsHelper(schema: ValueSchema, arg: Argument, filenames: Record<string, string>) {
switch (schema.type) {
case 'path':
return filenames[arg] || arg;
Expand Down

0 comments on commit 284070b

Please sign in to comment.