Skip to content

Issue in ember.d.ts #3534

Description

@lokananda7

As ember allows multiple core object arguments while extending any Ember object, I suppose the type definition for "extend" function should follow the rest parameter syntax of typescript as shown below.

class Object extends CoreObject implements Observable {
        /**
        Creates a subclass of the Object class.
        **/
        static extend<T>(...arguments?: CoreObjectArguments[]): T;
}

instead of the current type definition which doesnot allow extending from multiple classes

 class Object extends CoreObject implements Observable {
        /**
        Creates a subclass of the Object class.
        **/
        static extend<T>(arguments?: CoreObjectArguments): T;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions