mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +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:
1 parent
43b6bf8875
commit
539eb90ace
1 file changed
+2
-2
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