mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Interfaces & classes
Interfaces with "new" now are Interfaces without "new" and clases with constructor.
This commit is contained in:
1 parent
be9cde5cf9
commit
0a2199ac29
1 file changed
+11
-7
+11
-7
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user