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:
Mateusz Warkocki
2015-06-18 18:47:03 +02:00
parent 43b6bf8875
commit 539eb90ace
+2 -2
View File
@@ -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;
}