Skip to content

Commit ce66039

Browse files
committed
fix: cast yparser.getOptions() to fix typecheck
getOptions() exists at runtime but is not in yargs type definitions.
1 parent e230024 commit ce66039

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ process.on("SIGUSR2", async () => {
4444
.command({
4545
handler: async (argv) => {
4646
try {
47-
const arrayKeys = new Set(yparser.getOptions().array.map((k: string) => camelCase(k)));
47+
const arrayKeys = new Set((yparser as any).getOptions().array.map((k: string) => camelCase(k)) as string[]);
4848
splitSemicolonEnvVars(argv, arrayKeys, process.env);
4949
injectGclVariableEnvVars(argv, gclVariableEnvVars);
5050
await handler(argv, new WriteStreamsProcess(), jobs);

0 commit comments

Comments
 (0)