Title: [Errors] Exported type whose functions return non-exported type · Issue #56 · microsoft/TypeScript · GitHub
Open Graph Title: [Errors] Exported type whose functions return non-exported type · Issue #56 · microsoft/TypeScript
X Title: [Errors] Exported type whose functions return non-exported type · Issue #56 · microsoft/TypeScript
Description: interface Foo { x: number; } export class Bar { f(): Foo { return null; } } Expected: Return type of public method from exported class has or is using private type 'Foo'. Actual: no error
Open Graph Description: interface Foo { x: number; } export class Bar { f(): Foo { return null; } } Expected: Return type of public method from exported class has or is using private type 'Foo'. Actual: no error
X Description: interface Foo { x: number; } export class Bar { f(): Foo { return null; } } Expected: Return type of public method from exported class has or is using private type 'Foo'. Actual: no error
Opengraph URL: https://github.com/microsoft/TypeScript/issues/56
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Errors] Exported type whose functions return non-exported type","articleBody":"``` TypeScript\ninterface Foo {\n x: number;\n}\n\nexport class Bar {\n f(): Foo { return null; }\n}\n```\n\nExpected: Return type of public method from exported class has or is using private type 'Foo'. \n\nActual: no error\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2014-07-17T19:56:00Z","url":"https://github.com/microsoft/TypeScript/issues/56"}
| 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:7b3ea02a-e4be-f49b-867f-384374337078 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88A4:3D97C8:8EBBC5:C058D4:6B00E562 |
| html-safe-nonce | 43713e6262e9ddd90f8d8ff807aa26c47cca725becac3762737d70e8d838f045 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEE0OjNEOTdDODo4RUJCQzU6QzA1OEQ0OjZCMDBFNTYyIiwidmlzaXRvcl9pZCI6IjQ5ODA0NjM2MTYwNDMwNTAzMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cdf13939ebd86e12f9597d4051ca7883a5cb5b38510004414bc0698c6ab2529a |
| hovercard-subject-tag | issue:38119199 |
| 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/56/issue_layout |
| twitter:image | https://opengraph.githubassets.com/953014f75a09b4b3af299ee0343d9eb24f0809dd1a67fd0a2f7b59561f8834b5/microsoft/TypeScript/issues/56 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/953014f75a09b4b3af299ee0343d9eb24f0809dd1a67fd0a2f7b59561f8834b5/microsoft/TypeScript/issues/56 |
| og:image:alt | interface Foo { x: number; } export class Bar { f(): Foo { return null; } } Expected: Return type of public method from exported class has or is using private type 'Foo'. Actual: no error |
| 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 | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width