Title: String type matching on index signature · Issue #4588 · microsoft/TypeScript · GitHub
Open Graph Title: String type matching on index signature · Issue #4588 · microsoft/TypeScript
X Title: String type matching on index signature · Issue #4588 · microsoft/TypeScript
Description: As of the latest nightly build (8/31/2015), the following code compiles: interface Bob { [key: string]: any; } var x: Bob = "something"; With TSC 1.5.3, I got the error message Index signature is missing in type 'String'. Can someone cla...
Open Graph Description: As of the latest nightly build (8/31/2015), the following code compiles: interface Bob { [key: string]: any; } var x: Bob = "something"; With TSC 1.5.3, I got the error message Index signature is m...
X Description: As of the latest nightly build (8/31/2015), the following code compiles: interface Bob { [key: string]: any; } var x: Bob = "something"; With TSC 1.5.3, I got the error message Index sign...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4588
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"String type matching on index signature","articleBody":"As of the latest nightly build (8/31/2015), the following code compiles:\n\n```\ninterface Bob { [key: string]: any; }\nvar x: Bob = \"something\";\n```\n\nWith TSC 1.5.3, I got the error message `Index signature is missing in type 'String'.` Can someone clarify if this is intended behavior? It seems like it might be (https://github.com/Microsoft/TypeScript/pull/4074), but it also seems a bit weird to be able to assign a string to what is probably intended to be a basic hash map.\n","author":{"url":"https://github.com/fongandrew","@type":"Person","name":"fongandrew"},"datePublished":"2015-09-01T08:08:53Z","url":"https://github.com/microsoft/TypeScript/issues/4588"}
| 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:b088ad0c-6636-50d4-5c0a-af443b2dc52d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A34E:8196C:8A9C73:B9EFB6:6B00E134 |
| html-safe-nonce | fcd1de49af91930f07cd6003187c0b8849b32984a23d760d9980f609fbc93932 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzRFOjgxOTZDOjhBOUM3MzpCOUVGQjY6NkIwMEUxMzQiLCJ2aXNpdG9yX2lkIjoiNjQ4MjQxMTc2NzE3MDkxMTI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9935a6b80b89c960281ca40d92c6d806e2400f07d1401fcffc6f3b1774046ace |
| hovercard-subject-tag | issue:104210590 |
| 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/4588/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c48f160250c67c3e487b0f7b72b28f608c6671798ddf88f05cbb918e72b1dd6/microsoft/TypeScript/issues/4588 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c48f160250c67c3e487b0f7b72b28f608c6671798ddf88f05cbb918e72b1dd6/microsoft/TypeScript/issues/4588 |
| og:image:alt | As of the latest nightly build (8/31/2015), the following code compiles: interface Bob { [key: string]: any; } var x: Bob = "something"; With TSC 1.5.3, I got the error message Index signature is m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fongandrew |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width