You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
925 B
16 lines
925 B
import Generator from 'yeoman-generator';
|
|
declare type CustomGeneratorStringPrompt = {
|
|
[x: string]: string;
|
|
} | Promise<{
|
|
[x: string]: string;
|
|
}>;
|
|
declare type CustomGeneratorBoolPrompt = {
|
|
[x: string]: boolean;
|
|
} | Promise<{
|
|
[x: string]: boolean;
|
|
}>;
|
|
export declare function List(self: Generator, name: string, message: string, choices: string[], defaultChoice?: string, skip?: boolean): CustomGeneratorStringPrompt;
|
|
export declare function Input(self: Generator, name: string, message: string, defaultChoice?: string, skip?: boolean): CustomGeneratorStringPrompt;
|
|
export declare function InputValidate(self: Generator, name: string, message: string, cb?: (input: string) => string | boolean, defaultChoice?: string, skip?: boolean): object | any;
|
|
export declare function Confirm(self: Generator, name: string, message: string, defaultChoice?: boolean, skip?: boolean): CustomGeneratorBoolPrompt;
|
|
export {};
|
|
|