From 539eb90acee5f0ed479d0a6feaae829e1a763ebb Mon Sep 17 00:00:00 2001 From: Mateusz Warkocki Date: Thu, 18 Jun 2015 18:47:03 +0200 Subject: [PATCH] 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 --- ember/ember.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ember/ember.d.ts b/ember/ember.d.ts index cd1ef6079..691178d79 100644 --- a/ember/ember.d.ts +++ b/ember/ember.d.ts @@ -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(args: {}): T; + static create(...args: []): T; detect(obj: any): boolean; reopen(args?: {}): T; }