Title: [spec] Apparent type of string literal type should be global interface String · Issue #543 · microsoft/TypeScript · GitHub
Open Graph Title: [spec] Apparent type of string literal type should be global interface String · Issue #543 · microsoft/TypeScript
X Title: [spec] Apparent type of string literal type should be global interface String · Issue #543 · microsoft/TypeScript
Description: Section 3.8.1 should be augmented to say that a string literal type should have as its apparent type the interface String. This is to enable things like: declare function f(x: "str"); declare function f(x: String); The new compiler is al...
Open Graph Description: Section 3.8.1 should be augmented to say that a string literal type should have as its apparent type the interface String. This is to enable things like: declare function f(x: "str"); declare funct...
X Description: Section 3.8.1 should be augmented to say that a string literal type should have as its apparent type the interface String. This is to enable things like: declare function f(x: "str"); dec...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/543
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[spec] Apparent type of string literal type should be global interface String","articleBody":"Section 3.8.1 should be augmented to say that a string literal type should have as its apparent type the interface String.\n\nThis is to enable things like:\n\n``` TypeScript\ndeclare function f(x: \"str\");\ndeclare function f(x: String);\n```\n\nThe new compiler is already doing this. We just need to change the spec and add a test for it.\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2014-08-26T21:13:05Z","url":"https://github.com/microsoft/TypeScript/issues/543"}
| 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:3844a8bf-7657-9e44-8740-e540470e787b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81B0:2D2F2F:85AF05:AF053D:6B00DB2C |
| html-safe-nonce | 9a63d78ab9849140f8a7e57475a62f849d5375548e896c0604921b6b76781483 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUIwOjJEMkYyRjo4NUFGMDU6QUYwNTNEOjZCMDBEQjJDIiwidmlzaXRvcl9pZCI6Ijg5NTI0NDQ2NTEyMTQ3ODk0MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 649e8269721b833f2cae361a656f797e8f8fed0dd41513044eb47d009a336972 |
| hovercard-subject-tag | issue:41222860 |
| 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/543/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45a5cd67c83e691296ed63103a9cf313e3322dd6f0fe205dd6e0a844969c1eb7/microsoft/TypeScript/issues/543 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45a5cd67c83e691296ed63103a9cf313e3322dd6f0fe205dd6e0a844969c1eb7/microsoft/TypeScript/issues/543 |
| og:image:alt | Section 3.8.1 should be augmented to say that a string literal type should have as its apparent type the interface String. This is to enable things like: declare function f(x: "str"); declare funct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhegazy |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| 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 | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width