mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix #14136: Make Object.create return any all the time
This commit is contained in:
committed by
Arthur Ozga
parent
2c3369e2a4
commit
a5d104c841
Vendored
+1
-1
@@ -140,7 +140,7 @@ 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<T extends object>(o: T | null): T | object;
|
||||
create(o: object | null): any;
|
||||
|
||||
/**
|
||||
* Creates an object that has the specified prototype, and that optionally contains specified properties.
|
||||
|
||||
Reference in New Issue
Block a user