We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37eb338 commit dc21ff8Copy full SHA for dc21ff8
scripts/cli/utils.ts
@@ -7,7 +7,7 @@ export const PROMPT_ALL = 'all';
7
export const PROMPT_LANGUAGES = [PROMPT_ALL, ...LANGUAGES];
8
export const PROMPT_CLIENTS = [PROMPT_ALL, ...CLIENTS];
9
10
-export type LangArg = Language | 'all' | undefined;
+export type LangArg = Language | typeof PROMPT_ALL | undefined;
11
12
export type PromptDecision = {
13
language: Language | 'all';
@@ -24,10 +24,7 @@ type Prompt = {
24
interactive: boolean;
25
};
26
27
-export function getClientChoices(
28
- job: Job,
29
- language?: Language | 'all'
30
-): string[] {
+export function getClientChoices(job: Job, language?: LangArg): string[] {
31
const withoutAlgoliaSearch = PROMPT_CLIENTS.filter(
32
(client) => client !== 'algoliasearch'
33
);
0 commit comments