UNPKG

piclist

Version:

Modified PicGo core, A tool for picture uploading

24 lines (23 loc) 747 B
export interface IInquirerQuestion { type: string; name: string; message?: string; choices?: ({ name: string; value: any; } | string)[]; default?: any; validate?: (val: any) => boolean | string | Promise<boolean | string>; when?: boolean | ((answers: Record<string, any>) => boolean | Promise<boolean>); filter?: (val: any) => any; transformer?: (val: any) => string; [key: string]: any; } export interface IInquirerAdapter { prompt<T = Record<string, any>>(questions: IInquirerQuestion[]): Promise<T>; } /** * Creates an adapter whose `.prompt()` method mirrors the legacy * `inquirer.prompt(questions)` API. */ export declare function createInquirerAdapter(): IInquirerAdapter;