diff --git a/types/inquirer/index.d.ts b/types/inquirer/index.d.ts index 1909781f88..dd2f4ad3c7 100644 --- a/types/inquirer/index.d.ts +++ b/types/inquirer/index.d.ts @@ -94,7 +94,7 @@ declare namespace inquirer { * Receive the user input and should return true if the value is valid, and an error message (String) * otherwise. If false is returned, a default error message is provided. */ - validate?(input: string): boolean | string; + validate?(input: string, answers?: Answers): boolean | string; /** * Receive the user input and return the filtered value to be used inside the program. * The value returned will be added to the Answers hash. @@ -106,6 +106,10 @@ declare namespace inquirer { */ when?: boolean | ((answers: Answers) => boolean); paginated?: boolean; + /** + * Change the number of lines that will be rendered when using list, rawList, expand or checkbox. + */ + pageSize?: number; } /**