mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added types for making build happy
This commit is contained in:
+8
-2
@@ -47,14 +47,20 @@ declare module yo {
|
||||
emit(event: string, ...args: any[]): boolean;
|
||||
|
||||
async(): any;
|
||||
prompt(opt?, callback?);
|
||||
prompt(opt?:IPromptOptions, callback?:(answers:any)=>void);
|
||||
log(message: string);
|
||||
npmInstall(packages: string[], options?);
|
||||
|
||||
appname: string;
|
||||
gruntfile: IGruntFileStatic;
|
||||
}
|
||||
|
||||
export interface IPromptOptions{
|
||||
type:stirng;
|
||||
name:string;
|
||||
message:string;
|
||||
default:string;
|
||||
}
|
||||
|
||||
export interface IGruntFileStatic {
|
||||
loadNpmTasks(pluginName: string): void;
|
||||
insertConfig(name, config);
|
||||
|
||||
Reference in New Issue
Block a user