-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
Currently it is typed like so:
interface ObjectConstructor {
/**
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
}So even though we are creating an object from a prototype and can deduce the type of the created object, it is set as any.
gerkim62
Metadata
Metadata
Assignees
Labels
No labels