Title: [Errors] No error for function with return type annotation that lacks a return statement · Issue #62 · microsoft/TypeScript · GitHub
Open Graph Title: [Errors] No error for function with return type annotation that lacks a return statement · Issue #62 · microsoft/TypeScript
X Title: [Errors] No error for function with return type annotation that lacks a return statement · Issue #62 · microsoft/TypeScript
Description: Code (should have an error): function fn(): string { }
Open Graph Description: Code (should have an error): function fn(): string { }
X Description: Code (should have an error): function fn(): string { }
Opengraph URL: https://github.com/microsoft/TypeScript/issues/62
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Errors] No error for function with return type annotation that lacks a return statement","articleBody":"Code (should have an error):\n\n``` TypeScript\nfunction fn(): string {\n}\n```\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2014-07-17T19:56:06Z","url":"https://github.com/microsoft/TypeScript/issues/62"}
| 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:a42eb1d7-f55f-6a49-a733-d69bed6f7644 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D156:3134C2:A76709:EA059E:6B0430E1 |
| html-safe-nonce | 899aa17946a16bf8521d820334924abdcf34a6e82ee9419608c45c1dad1c3d3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTU2OjMxMzRDMjpBNzY3MDk6RUEwNTlFOjZCMDQzMEUxIiwidmlzaXRvcl9pZCI6IjYwOTY1MjA1NTMwNjAxMTg3NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8b43e1df6200d5f0c9c263fb701882f3a2e0279e6ffb9a750f6982cf246af7f3 |
| hovercard-subject-tag | issue:38119220 |
| 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/62/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6deed2386f4887bb659526329ef14c1dbebd785f98d4860fa2d96351a2a8b3b/microsoft/TypeScript/issues/62 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6deed2386f4887bb659526329ef14c1dbebd785f98d4860fa2d96351a2a8b3b/microsoft/TypeScript/issues/62 |
| og:image:alt | Code (should have an error): function fn(): string { } |
| 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 | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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