Skip to content

Commit

Permalink
chore: stricter type
Browse files Browse the repository at this point in the history
Co-Authored-By: Jon Ursenbach <[email protected]>
  • Loading branch information
kanadgupta and erunion committed Oct 20, 2023
1 parent bd2c0e3 commit 8a6dea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ cmd
new Option('-l, --lang <language>', 'SDK language').default(SupportedLanguages.JS).choices([SupportedLanguages.JS]),
)
.addOption(new Option('-y, --yes', 'Automatically answer "yes" to any prompts printed'))
.action(async (uri: string, options: { identifier?: string; lang: string; yes?: boolean }) => {
.action(async (uri: string, options: { identifier?: string; lang: SupportedLanguage; yes?: boolean }) => {
let language: SupportedLanguage;
if (options.lang) {
language = options.lang as SupportedLanguage;
language = options.lang;
} else {
({ value: language } = await promptTerminal({
type: 'select',
Expand Down

0 comments on commit 8a6dea0

Please sign in to comment.