UNPKG

sinotron

Version:

Simple framework for Typescript Electron projects

22 lines (21 loc) 610 B
export declare const ask: { input(id: string, message: string): Promise<{ [x: string]: any; }>; singleChoice(id: string, message: string, options: string[]): Promise<{ [x: string]: any; }>; multipleChoice(id: string, message: string, options: string[]): Promise<{ [x: string]: any; }>; selectFile(): Promise<string>; selectPath(name: string, opts: PathPromptOpts): Promise<{ [x: string]: any; }>; }; export type PathPromptOpts = { refDir: string; targetType: 'file' | 'directory' | 'any'; depth?: number; message?: string; };