mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Added Promise syntax to PrompModule in Inquirer.js (#15528)
`prompt(questions: Questions): Promise<Answers>;` was missing from the PromptModule type.
This commit is contained in:
Vendored
+1
@@ -41,6 +41,7 @@ declare namespace inquirer {
|
||||
}
|
||||
|
||||
interface PromptModule {
|
||||
(questions: Questions): Promise<Answers>;
|
||||
(questions: Questions, cb: (answers: Answers) => any): ui.Prompt;
|
||||
/**
|
||||
* Register a prompt type
|
||||
|
||||
Reference in New Issue
Block a user