Description
Bug Report
π Search Terms
conditional types, 4.9, infer, regression
π Version & Regression Information
bad : 4.9.0-dev.20220827
not available on NPM : 4.9.0-dev.20220826
good : 4.9.0-dev.20220825
β― Playground Link
Wasn't able to make a small independent repro out of it, but these are the repro steps:
git clone https://github.com/microsoft/playwright
cd playwright
npm ci
# make it TypeScript 4.9 compatible
npm i -D @types/[email protected]
npm i -D [email protected]
npm run tsc
π Actual behavior
Does not transpile, a lot of weird errors which did not make sense to me.
π Expected behavior
It compiles without any errors.
cc @andrewbranch @DanielRosenwasser since both interacted with Playwright and TypeScript before to try out the new RCs.