mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fix argument typing for Mixin.create in ember.d.ts
`Mixin.create` can take not one, but multiple arguments like e.g. `Component.extend` to extend other mixins. Ember code: https://github.com/emberjs/ember.js/blob/master/packages/ember-metal/lib/mixin.js#L589 This method in action: http://jsbin.com/kipenaxowe/edit?html,js,console
This commit is contained in:
Vendored
+2
-2
@@ -1418,9 +1418,9 @@ declare module Ember {
|
||||
apply(obj: any): any;
|
||||
/**
|
||||
Creates an instance of the class.
|
||||
@param arguments A hash containing values with which to initialize the newly instantiated object.
|
||||
@param args A hash containing values with which to initialize the newly instantiated object.
|
||||
**/
|
||||
static create<T extends Mixin>(args: {}): T;
|
||||
static create<T extends Mixin>(...args: []): T;
|
||||
detect(obj: any): boolean;
|
||||
reopen<T extends Mixin>(args?: {}): T;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user