Title: Type does not follow workspace since 4.3.2 · Issue #44488 · microsoft/TypeScript · GitHub
Open Graph Title: Type does not follow workspace since 4.3.2 · Issue #44488 · microsoft/TypeScript
X Title: Type does not follow workspace since 4.3.2 · Issue #44488 · microsoft/TypeScript
Description: Bug Report Hello team, Not sure if it's a limitation or a bug, but when using types across workspaces, some of them are not following along. I can not explain why, but I have a small repro 🔎 Search Terms types, express, workspaces, refer...
Open Graph Description: Bug Report Hello team, Not sure if it's a limitation or a bug, but when using types across workspaces, some of them are not following along. I can not explain why, but I have a small repro 🔎 Search...
X Description: Bug Report Hello team, Not sure if it's a limitation or a bug, but when using types across workspaces, some of them are not following along. I can not explain why, but I have a small repro 🔎 Se...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/44488
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type does not follow workspace since 4.3.2","articleBody":"# Bug Report\r\n\r\nHello team,\r\nNot sure if it's a limitation or a bug, but when using types across workspaces, some of them are not following along.\r\nI can not explain why, but I have a small repro\r\n\r\n### 🔎 Search Terms\r\n\r\ntypes, express, workspaces, references,\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This changed between versions 4.2.4 -> 4.3.2\r\n- Still happening with @next\r\n\r\n### ⏯ Playground Link\r\n\r\n- A working example without workspaces: https://www.typescriptlang.org/play?ssl=21&ssc=3&pln=13&pc=1#code/JYWwDg9gTgLgBAUwB5iggzuuAzKERwDkyqG6hA3AFBUAmCAxgDYCGaOArgHYMzARc46GGxgAJGDDABlBFABucgBQBvKnDiRYAGnVwO6DLo0swYXQF8AXHDUatMG1w4gARnLgAfITCjAuAObUGgYYAPw2AEqM0LQAPMJ+gdqIKGiYAHQAgmZMwAwsfAJeqaSZ0QCOHBjiLFy0THJxdQCeAHxtwXCmYBGl6ejZufmF-ILezkxM1BYAlDYACnggwIbNXO3UNMKiElKyCsp2mtCOcAAcAAzXxvqG6DbHGoTYEBAZACpIMIQ2SmgVFLpWZwAC8bVseg0GjQMA4UEEhFcbEoULgFj0GLmQA\r\n- The repro: https://github.com/bodinsamuel/ts-workspace-typing-issue\r\n\r\n```sh\r\ngit clone https://github.com/bodinsamuel/ts-workspace-typing-issue.git\r\ncd ts-workspace-typing-issue\r\nyarn\r\nyarn tsc -b\r\n```\r\n\r\n```sh\r\n$ /Users/samuelbodin/code/test-ts-workspace/node_modules/.bin/tsc -b\r\ntest2/index.ts:6:17 - error TS7006: Parameter 'req' implicitly has an 'any' type.\r\n\r\n6 'foo.Txt': (req, res) => {\r\n ~~~\r\n\r\ntest2/index.ts:6:22 - error TS7006: Parameter 'res' implicitly has an 'any' type.\r\n\r\n6 'foo.Txt': (req, res) => {\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nExpress `req` and `res` are typed as any\r\n\r\n\r\n\r\n### 🙂 Expected behavior\r\n\r\nCorrect express typing\r\n","author":{"url":"https://github.com/bodinsamuel","@type":"Person","name":"bodinsamuel"},"datePublished":"2021-06-07T19:09:32Z","url":"https://github.com/microsoft/TypeScript/issues/44488"}
| 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:0c075198-9d02-9abe-226a-ade3072de569 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99C6:26ECEB:A7C14F:D905B9:6B00E3EE |
| html-safe-nonce | f285336acf2c96987cc4b18c8c114fc1c0ed095fc89f0ee856b630589ae52b4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUM2OjI2RUNFQjpBN0MxNEY6RDkwNUI5OjZCMDBFM0VFIiwidmlzaXRvcl9pZCI6IjYzNzYyMzk3OTg2Nzk1NjExOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 58b6ea6302092f6712f1e3256760747463c3852b857dd851e565856c60860e04 |
| hovercard-subject-tag | issue:913876190 |
| 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/44488/issue_layout |
| twitter:image | https://opengraph.githubassets.com/198c35743bb03d71d564e6a1fe68e92a7b74933bd792b4540a7a8e06497b69ec/microsoft/TypeScript/issues/44488 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/198c35743bb03d71d564e6a1fe68e92a7b74933bd792b4540a7a8e06497b69ec/microsoft/TypeScript/issues/44488 |
| og:image:alt | Bug Report Hello team, Not sure if it's a limitation or a bug, but when using types across workspaces, some of them are not following along. I can not explain why, but I have a small repro 🔎 Search... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bodinsamuel |
| 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