Property 'setPrototypeOf' does not exist on type 'ObjectConstructor'
问题 I want to implement polyfill Object.setPrototypeOf as is descrbed in: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf It is my polyfill.ts: // Only works in Chrome and FireFox, does not work in IE: Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) { obj.__proto__ = proto; return obj; } polyfills.d.ts: declare interface ObjectConstructor{ setPrototypeOf(obj: any, proto: any); } I was trying with many possibilities of