diff --git a/LPTE.d.ts b/LPTE.d.ts index be3e8ba..4c2482f 100644 --- a/LPTE.d.ts +++ b/LPTE.d.ts @@ -71,11 +71,15 @@ export interface LPTE { * Emits a prompt in the console, and waits for a response (or until timeout) * @param prompt the prompt to send * @param timeout the amount of ms to wait until rejecting the promise because of timeout + * @returns answer given by user or default */ - prompt: (prompt: { + prompt: ((prompt: { questions: QuestionCollection initialAnswers?: Partial | undefined - }, timeout?: number) => Promise + }) => Promise) | ((prompt: { + questions: QuestionCollection + initialAnswers?: Partial | undefined + }, timeout: number) => Promise) } export declare class Registration {