Title: Some Playwright types now reported as `any` after upgrading to 5.7.2 · Issue #60619 · microsoft/TypeScript · GitHub
Open Graph Title: Some Playwright types now reported as `any` after upgrading to 5.7.2 · Issue #60619 · microsoft/TypeScript
X Title: Some Playwright types now reported as `any` after upgrading to 5.7.2 · Issue #60619 · microsoft/TypeScript
Description: 🔎 Search Terms I manually scrolled through all issues reported since the release of 5.7.2. 🕗 Version & Regression Information This changed between versions 5.6.3 and 5.7.2 ⏯ Playground Link https://github.com/mrmckeb/pw-repro 💻 Code Mini...
Open Graph Description: 🔎 Search Terms I manually scrolled through all issues reported since the release of 5.7.2. 🕗 Version & Regression Information This changed between versions 5.6.3 and 5.7.2 ⏯ Playground Link https:/...
X Description: 🔎 Search Terms I manually scrolled through all issues reported since the release of 5.7.2. 🕗 Version & Regression Information This changed between versions 5.6.3 and 5.7.2 ⏯ Playground Link htt...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/60619
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some Playwright types now reported as `any` after upgrading to 5.7.2","articleBody":"### 🔎 Search Terms\n\nI manually scrolled through all issues reported since the release of 5.7.2.\n\n### 🕗 Version & Regression Information\n\n- This changed between versions 5.6.3 and 5.7.2\n\n### ⏯ Playground Link\n\nhttps://github.com/mrmckeb/pw-repro\n\n### 💻 Code\n\nMinimal repro available here:\nhttps://github.com/mrmckeb/pw-repro\n\nThe Playwright team are also able to reproduce:\nhttps://github.com/microsoft/playwright/issues/33763\n\nThe affected code (from the repro) is:\n```ts\nimport { test as base, expect } from \"@playwright/test\";\n\nconst test = base.extend({\n // baseUrl, page, use are now `any`\n page: async ({ baseURL, page }, use) => {\n await page.goto(baseURL);\n await use(page);\n },\n});\n```\n\n### 🙁 Actual behavior\n\nTypes that were previously available are now typed as `any`. JSDoc continues to work as expected.\n\n### 🙂 Expected behavior\n\nTypes behave as they did in TypeScript 5.6.3.\n\n### Additional information about the issue\n\nWe found this issue when upgrading from 5.6.3 to 5.7.2. I couldn't find a related issue here, so raised it at the Playwright repo to at least verify that they could reproduce and that they didn't think it was an issue with their types.\n\nThe Playwright team also confirmed that they have 71 new errors across 41 files when moving to TypeScript 5.7.2.","author":{"url":"https://github.com/mrmckeb","@type":"Person","name":"mrmckeb"},"datePublished":"2024-11-26T22:04:12Z","url":"https://github.com/microsoft/TypeScript/issues/60619"}
| 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:d5e21728-4583-36e5-8fe0-893937ccfdf6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1B4:2F543F:79F3CC:A1C800:6B01ABAE |
| html-safe-nonce | 8e065335d1c951d8382d925e6a8a26e3e0a5715970841cdcb7b88fa048df02b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUI0OjJGNTQzRjo3OUYzQ0M6QTFDODAwOjZCMDFBQkFFIiwidmlzaXRvcl9pZCI6IjE2MTE2NDQxODI3ODEzNDA1OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 340c3f479e8312ba7228564cd13b1e31b254b0b267b84653054f33d9ac93ddf1 |
| hovercard-subject-tag | issue:2696234116 |
| 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/60619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/497dac9382c276fff23e1097faeb4c63c9080fa79c333144bb6ef86c9879496e/microsoft/TypeScript/issues/60619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/497dac9382c276fff23e1097faeb4c63c9080fa79c333144bb6ef86c9879496e/microsoft/TypeScript/issues/60619 |
| og:image:alt | 🔎 Search Terms I manually scrolled through all issues reported since the release of 5.7.2. 🕗 Version & Regression Information This changed between versions 5.6.3 and 5.7.2 ⏯ Playground Link https:/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mrmckeb |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width