Interfaces & classes

Interfaces with "new" now are Interfaces without "new" and clases with constructor.
This commit is contained in:
Sergio Morchón Poveda
2015-02-24 17:21:04 +01:00
parent be9cde5cf9
commit 0a2199ac29
+11 -7
View File
@@ -76,15 +76,19 @@ declare module yo {
end: () => void;
}
export interface IBase {
new(args: string, options: any): IYeomanGenerator;
new(args: string[], options: any): IYeomanGenerator;
extend(protoProps: IQueueProps, staticProps?: any): IYeomanGenerator;
export interface INamedBase extends IYeomanGenerator {
}
export interface INamedBase {
new(args: string, options: any): IYeomanGenerator;
new(args: string[], options: any): IYeomanGenerator;
export interface IBase extends INamedBase {
extend(protoProps: IQueueProps, staticProps?: any): IYeomanGenerator;
}
export class Namedbase extends YeomanGeneratorBase implements INamedBase {
constructor(args: string | string[], options: any);
}
export class Base extends Namedbase implements IBase {
extend(protoProps: IQueueProps, staticProps?: any): IYeomanGenerator;
}
export interface IAssert {