From d8801004c94bb63b366b0c63444f11563db50975 Mon Sep 17 00:00:00 2001 From: Himyu Date: Sun, 22 Sep 2024 19:37:56 +0200 Subject: [PATCH] update types for prompt --- LPTE.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 {