mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Updated module "generators" with classes
Change the un-inheritable interfaces Base: IBase and NamedBase: INamedBase by the new clases Base and NamedBase.
Now you can do like this:
``` typescript
class WflGenerator extends yo.generators.Base {
}
```
This commit is contained in:
+10
-12
@@ -83,14 +83,6 @@ declare module yo {
|
||||
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 {
|
||||
file(path: string): void;
|
||||
file(paths: string[]): void;
|
||||
@@ -150,10 +142,16 @@ declare module yo {
|
||||
var file: any;
|
||||
var assert: IAssert;
|
||||
var test: ITestHelper;
|
||||
var generators: {
|
||||
Base: IBase;
|
||||
NamedBase: INamedBase;
|
||||
};
|
||||
module generators {
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare module "yeoman-generator" {
|
||||
|
||||
Reference in New Issue
Block a user