Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prompts] Update types to account for new override function #40136

Merged
merged 2 commits into from Nov 6, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Update validate and suggest signatures

  • Loading branch information
Whoaa512 committed Nov 5, 2019
commit bf5bdd6ab2c7996f461819c47b7d86c65ce77980
@@ -73,7 +73,7 @@ declare namespace prompts {
initial?: string | number | boolean | Date;
style?: string;
format?: PrevCaller<T, void>;
validate?: PrevCaller<T, boolean | string>;
validate?: PrevCaller<T, boolean | string | Promise<boolean | string>>;
onState?: PrevCaller<T, void>;
min?: number;
max?: number;
@@ -85,7 +85,7 @@ declare namespace prompts {
inactive?: string;
choices?: Choice[];
hint?: string;
suggest?: ((prev: any, values: any, prompt: PromptObject) => void);
suggest?: ((input: any, choices: Choice[]) => Promise<any>);
limit?: number;
mask?: string;
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.