Skip to content

Commit a2e7c3f

Browse files
author
Mac Mini
committed
refactor(plugin-openapi): avoid explicit any in build-command option access
1 parent 6bd704a commit a2e7c3f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/plugin-openapi/src/lib/utils/build-command.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ export function buildCommandArgs(options: OpenApiGeneratorOptions): string[] {
8181
args.push('-g', 'typescript-angular');
8282
args.push('-o', options.outputPath!);
8383

84-
for (const [optionKey, flagConfig] of Object.entries(OPTION_FLAG_MAP)) {
85-
const value = (options as any)[optionKey];
84+
for (const [optionKey, flagConfig] of Object.entries(OPTION_FLAG_MAP) as [
85+
keyof OpenApiGeneratorOptions,
86+
FlagConfig | string
87+
][]) {
88+
const value = options[optionKey] as unknown;
8689
if (
8790
value === undefined ||
8891
value === null ||

0 commit comments

Comments
 (0)