mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Interfaces & classes
Interfaces with "new" now are Interfaces without "new" and clases with constructor.
This commit is contained in:
+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