mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Fix #14136: Make Object.create return any all the time
This commit is contained in:
committed by
Arthur Ozga
parent
2c3369e2a4
commit
a5d104c841
2
src/lib/es5.d.ts
vendored
2
src/lib/es5.d.ts
vendored
@@ -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