Title: Check typeof operator result · Issue #12697 · microsoft/TypeScript · GitHub
Open Graph Title: Check typeof operator result · Issue #12697 · microsoft/TypeScript
X Title: Check typeof operator result · Issue #12697 · microsoft/TypeScript
Description: Throw a compiler error if typeof operator is compared to strings other than typeof operator results TypeScript Version: 2.1.1 Code typeof a === 'String' // error typeof b === 'null' // error
Open Graph Description: Throw a compiler error if typeof operator is compared to strings other than typeof operator results TypeScript Version: 2.1.1 Code typeof a === 'String' // error typeof b === 'null' // error
X Description: Throw a compiler error if typeof operator is compared to strings other than typeof operator results TypeScript Version: 2.1.1 Code typeof a === 'String' // error typeof b === 'null'...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/12697
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Check typeof operator result ","articleBody":"Throw a compiler error if `typeof` operator is compared to strings other than [`typeof` operator results](http://www.ecma-international.org/ecma-262/6.0/#sec-typeof-operator-runtime-semantics-evaluation)\r\n\r\n**TypeScript Version:** 2.1.1 \r\n\r\n**Code**\r\n\r\n```ts\r\ntypeof a === 'String' // error\r\ntypeof b === 'null' // error\r\n```\r\n","author":{"url":"https://github.com/mohsen1","@type":"Person","name":"mohsen1"},"datePublished":"2016-12-06T23:34:22Z","url":"https://github.com/microsoft/TypeScript/issues/12697"}
| 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:d525e012-4e3b-3f25-68fd-267f6a5c6878 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91CA:AD997:1EF2BE7:274836D:6B03CCD8 |
| html-safe-nonce | ad5cdaee565c39b01be3ba31d1de9d5c8d8bbf1f505579974c0233626054dc0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUNBOkFEOTk3OjFFRjJCRTc6Mjc0ODM2RDo2QjAzQ0NEOCIsInZpc2l0b3JfaWQiOiIyMjE3Mzg0MDA2MzE0NjA5ODgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3f3078cef7d04daf2ea6f5b513e04da58c1e3f94a9cb96e2239c5123c761da36 |
| hovercard-subject-tag | issue:193916824 |
| 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/12697/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d64e24897a2dcaa8654a2ef1aa5d68637881122cb34151cc758a72b3a97fb6ce/microsoft/TypeScript/issues/12697 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d64e24897a2dcaa8654a2ef1aa5d68637881122cb34151cc758a72b3a97fb6ce/microsoft/TypeScript/issues/12697 |
| og:image:alt | Throw a compiler error if typeof operator is compared to strings other than typeof operator results TypeScript Version: 2.1.1 Code typeof a === 'String' // error typeof b === 'null' // error |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mohsen1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width