Skip to content

Commit dc21ff8

Browse files
committed
P's review
1 parent 37eb338 commit dc21ff8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/cli/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const PROMPT_ALL = 'all';
77
export const PROMPT_LANGUAGES = [PROMPT_ALL, ...LANGUAGES];
88
export const PROMPT_CLIENTS = [PROMPT_ALL, ...CLIENTS];
99

10-
export type LangArg = Language | 'all' | undefined;
10+
export type LangArg = Language | typeof PROMPT_ALL | undefined;
1111

1212
export type PromptDecision = {
1313
language: Language | 'all';
@@ -24,10 +24,7 @@ type Prompt = {
2424
interactive: boolean;
2525
};
2626

27-
export function getClientChoices(
28-
job: Job,
29-
language?: Language | 'all'
30-
): string[] {
27+
export function getClientChoices(job: Job, language?: LangArg): string[] {
3128
const withoutAlgoliaSearch = PROMPT_CLIENTS.filter(
3229
(client) => client !== 'algoliasearch'
3330
);

0 commit comments

Comments
 (0)