Title: TS not indicating type missmatches · Issue #12914 · microsoft/TypeScript · GitHub
Open Graph Title: TS not indicating type missmatches · Issue #12914 · microsoft/TypeScript
X Title: TS not indicating type missmatches · Issue #12914 · microsoft/TypeScript
Description: TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx) Code interface Input { text?: string; } const test = (input: Input): string => { return ""; }; test("test"); Expected behavior: Type mismatch indicated. It works if I make the Inpu...
Open Graph Description: TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx) Code interface Input { text?: string; } const test = (input: Input): string => { return ""; }; test("test"); Expected behavior: Type mismatc...
X Description: TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx) Code interface Input { text?: string; } const test = (input: Input): string => { return ""; }; test("test"); Expected...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/12914
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TS not indicating type missmatches","articleBody":"**TypeScript Version:** 2.1.1 / nightly (2.2.0-dev.201xxxxx)\r\n\r\n**Code**\r\n\r\n```\r\ninterface Input {\r\n text?: string;\r\n}\r\n\r\nconst test = (input: Input): string => {\r\n return \"\";\r\n};\r\n\r\ntest(\"test\");\r\n```\r\n\r\n**Expected behavior:**\r\nType mismatch indicated.\r\nIt works if I make the Input Interface text member non-optional.\r\n**Actual behavior:**\r\nNo type mismatch indicated.\r\nIt works if I make the Input Interface text member non-optional.\r\n\r\n","author":{"url":"https://github.com/glazar","@type":"Person","name":"glazar"},"datePublished":"2016-12-14T15:24:17Z","url":"https://github.com/microsoft/TypeScript/issues/12914"}
| 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:8646674e-c75c-5d02-14b1-e1222b544263 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFFC:966C4:588A59:7A95BB:6B009465 |
| html-safe-nonce | d3d04b1ca179a1f0dd3f132cb8c0face372940576ddc9d6a020ca4989c8a78ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkZDOjk2NkM0OjU4OEE1OTo3QTk1QkI6NkIwMDk0NjUiLCJ2aXNpdG9yX2lkIjoiODU4MzAxODU1Mjk2NDI3MTA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c5061d5771807de365ccd115129bc6b4fec9e62c6e369e24b2a707cfba51db1d |
| hovercard-subject-tag | issue:195559966 |
| 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/12914/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8bc0f8c3ee28e9c916efa32cf9cf924f99f8f5ae783040216e9435fe164cc3c/microsoft/TypeScript/issues/12914 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8bc0f8c3ee28e9c916efa32cf9cf924f99f8f5ae783040216e9435fe164cc3c/microsoft/TypeScript/issues/12914 |
| og:image:alt | TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx) Code interface Input { text?: string; } const test = (input: Input): string => { return ""; }; test("test"); Expected behavior: Type mismatc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glazar |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| 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 | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width