From fbbef0aa4fdbd070baa641aa1dd497d82bac29b9 Mon Sep 17 00:00:00 2001 From: Neea Rusch Date: Sat, 21 Aug 2021 20:13:53 -0400 Subject: [PATCH] type the arguments --- src/publish.ts | 8 +++++++- src/upload.ts | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/publish.ts b/src/publish.ts index 340a807..211992e 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -18,5 +18,11 @@ program .arguments('') .arguments('') .option('-t, --testers', 'publish to testers') - .action((a, b, c, d, e) => publish(a, b, c, d, e, (program as OptionValues).testers)) + .action(( + clientId: string, + secret: string, + token: string, + zipPath: string, + extId: string + ) => publish(clientId, secret, token, zipPath, extId, (program as OptionValues).testers)) .parse(process.argv); diff --git a/src/upload.ts b/src/upload.ts index ea47b51..e49ac2f 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -17,5 +17,11 @@ program .arguments('') .arguments('') .arguments('') - .action((a, b, c, d, e) => (upload(a, b, c, d, e) as Promise)) + .action(( + clientId: string, + secret: string, + token: string, + zipPath: string, + extId: string + ) => (upload(clientId, secret, token, zipPath, extId) as Promise)) .parse(process.argv);