Title: Issues with extending ObjectConstructor interface · Issue #3889 · microsoft/TypeScript · GitHub
Open Graph Title: Issues with extending ObjectConstructor interface · Issue #3889 · microsoft/TypeScript
X Title: Issues with extending ObjectConstructor interface · Issue #3889 · microsoft/TypeScript
Description: While this currently doesn't error in Playground, in 1.5.0-beta and release-1.5 branch, I get error TS2339: Property 'assign' does not exist on type 'ObjectConstructor' for the following: interface ObjectConstructor { assign(target: any,...
Open Graph Description: While this currently doesn't error in Playground, in 1.5.0-beta and release-1.5 branch, I get error TS2339: Property 'assign' does not exist on type 'ObjectConstructor' for the following: interface...
X Description: While this currently doesn't error in Playground, in 1.5.0-beta and release-1.5 branch, I get error TS2339: Property 'assign' does not exist on type 'ObjectConstructor' for the ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/3889
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issues with extending ObjectConstructor interface","articleBody":"While this currently doesn't error in [Playground](http://www.typescriptlang.org/Playground#src=interface%20ObjectConstructor%20%7B%0D%0A%20%20%20%20assign%28target%3A%20any%2C%20...sources%3A%20any%5B%5D%29%3A%20any%3B%0D%0A%7D%0D%0A%0D%0Alet%20assign%20%3D%20Object.assign%20%3F%20Object.assign%20%3A%20function%28target%3A%20any%2C%20...sources%3A%20any%5B%5D%29%3A%20any%20%7B%0D%0A%20%20%20%20return%3B%0D%0A%7D%3B%0D%0A), in **1.5.0-beta** and **release-1.5** branch, I get `error TS2339: Property 'assign' does not exist on type 'ObjectConstructor'` for the following:\n\n``` typescript\ninterface ObjectConstructor {\n assign(target: any, ...sources: any[]): any;\n}\n\nlet assign = Object.assign ? Object.assign : function(target: any, ...sources: any[]): any {\n return;\n};\n```\n","author":{"url":"https://github.com/kitsonk","@type":"Person","name":"kitsonk"},"datePublished":"2015-07-16T08:44:44Z","url":"https://github.com/microsoft/TypeScript/issues/3889"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ba3c283e-6dc5-7d4e-d1c8-890c467b1ab5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C46E:3F8AB1:13C03EB:19379ED:6B0111E7 |
| html-safe-nonce | e675aa3a4fe93593888a24a7eaa75d78a7f169e44dcde62fd5d350a703fd13a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDZFOjNGOEFCMToxM0MwM0VCOjE5Mzc5RUQ6NkIwMTExRTciLCJ2aXNpdG9yX2lkIjoiMTEzNzIwNDQ1NTgzNDQ1NjU1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 84839b049cf8157efd895e976e37c766265fbeb0b60c9603af0e4b11e99c068f |
| hovercard-subject-tag | issue:95382143 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/3889/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0db0631ed6129863603d38d8a0487200066a6b7886db28f9d54a1f58afe55fb9/microsoft/TypeScript/issues/3889 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0db0631ed6129863603d38d8a0487200066a6b7886db28f9d54a1f58afe55fb9/microsoft/TypeScript/issues/3889 |
| og:image:alt | While this currently doesn't error in Playground, in 1.5.0-beta and release-1.5 branch, I get error TS2339: Property 'assign' does not exist on type 'ObjectConstructor' for the following: interface... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kitsonk |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width