Title: Incorrect casing: property "URL.searchparams" should be "URL.searchParams" · Issue #14399 · microsoft/TypeScript · GitHub
Open Graph Title: Incorrect casing: property "URL.searchparams" should be "URL.searchParams" · Issue #14399 · microsoft/TypeScript
X Title: Incorrect casing: property "URL.searchparams" should be "URL.searchParams" · Issue #14399 · microsoft/TypeScript
Description: In lib.dom.d.ts, the searchparams property of the URL interface should be cased as searchParams according to MDN. TypeScript Version: 2.2.1 Code // A *self-contained* demonstration of the problem follows... let pageUrl = new URL(location...
Open Graph Description: In lib.dom.d.ts, the searchparams property of the URL interface should be cased as searchParams according to MDN. TypeScript Version: 2.2.1 Code // A *self-contained* demonstration of the problem f...
X Description: In lib.dom.d.ts, the searchparams property of the URL interface should be cased as searchParams according to MDN. TypeScript Version: 2.2.1 Code // A *self-contained* demonstration of the problem f...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/14399
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect casing: property \"URL.searchparams\" should be \"URL.searchParams\"","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\nIn lib.dom.d.ts, the [searchparams property of the URL interface](https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L11860) should be cased as searchParams according to [MDN](https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams).\r\n\r\n**TypeScript Version:** 2.2.1\r\n\r\n**Code**\r\n\r\n```ts\r\n// A *self-contained* demonstration of the problem follows...\r\nlet pageUrl = new URL(location.href);\r\nlet url = pageUrl.searchParams.get(\"url\");\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nShould compile successfully.\r\n\r\n**Actual behavior:**\r\n\r\n`tsc` returns an error when compiling.\r\n\r\n```console\r\nsrc/index.ts(9,19): error TS2339: Property 'searchParams' does not exist on type 'URL'.\r\n```","author":{"url":"https://github.com/JeffJacobson","@type":"Person","name":"JeffJacobson"},"datePublished":"2017-03-01T23:02:45Z","url":"https://github.com/microsoft/TypeScript/issues/14399"}
| 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:a830ed4c-5539-0ff3-a1f7-5464937f6f7a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D97A:3A4875:29DF8FF:37DA8C1:6B01BD39 |
| html-safe-nonce | edb573e3afaeb273b48bdb554915cb05fafe144d3e0681527c7fd266386d847e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTdBOjNBNDg3NToyOURGOEZGOjM3REE4QzE6NkIwMUJEMzkiLCJ2aXNpdG9yX2lkIjoiMTcwNTY0MzIwMDM0NDA1Njg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 13a640696546ef74b55430f9e0aa5381138edb1d9eea9f0229793ceb9a79ee42 |
| hovercard-subject-tag | issue:211236822 |
| 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/14399/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f8490317c62ad063b2e4f9eb92224ed33612504d1d9cfd5538fffd0925ccf7f/microsoft/TypeScript/issues/14399 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f8490317c62ad063b2e4f9eb92224ed33612504d1d9cfd5538fffd0925ccf7f/microsoft/TypeScript/issues/14399 |
| og:image:alt | In lib.dom.d.ts, the searchparams property of the URL interface should be cased as searchParams according to MDN. TypeScript Version: 2.2.1 Code // A *self-contained* demonstration of the problem f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JeffJacobson |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width