We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context:
@playwright/test
1.20.1
Repo
4.7.0-dev.20220329
import * as playwright from '@playwright/test';
Describe the bug
This produces the following compile errors:
matb@mjbmbp16 san % npx tsc -p tsconfig.json node_modules/@playwright/test/types/test.d.ts:2682:57 - error TS2344: Type 'T' does not satisfy the constraint 'KeyValue'. 2682 extend<T, W extends KeyValue = {}>(fixtures: Fixtures<T, W, TestArgs, WorkerArgs>): TestType<TestArgs & T, WorkerArgs & W>; ~ node_modules/@playwright/test/types/test.d.ts:2682:10 2682 extend<T, W extends KeyValue = {}>(fixtures: Fixtures<T, W, TestArgs, WorkerArgs>): TestType<TestArgs & T, WorkerArgs & W>; ~ This type parameter probably needs an `extends object` constraint. node_modules/@playwright/test/types/test.d.ts:2693:72 - error TS2344: Type 'Args' does not satisfy the constraint 'KeyValue'. 2693 type TestFixtureValue<R, Args> = Exclude<R, Function> | TestFixture<R, Args>; ~~~~ node_modules/@playwright/test/types/test.d.ts:2693:26 2693 type TestFixtureValue<R, Args> = Exclude<R, Function> | TestFixture<R, Args>; ~~~~ This type parameter probably needs an `extends object` constraint. node_modules/@playwright/test/types/test.d.ts:2694:76 - error TS2344: Type 'Args' does not satisfy the constraint 'KeyValue'. 2694 type WorkerFixtureValue<R, Args> = Exclude<R, Function> | WorkerFixture<R, Args>; ~~~~ node_modules/@playwright/test/types/test.d.ts:2694:28 2694 type WorkerFixtureValue<R, Args> = Exclude<R, Function> | WorkerFixture<R, Args>; ~~~~ This type parameter probably needs an `extends object` constraint. Found 3 errors in the same file, starting at: node_modules/@playwright/test/types/test.d.ts:2682
This may be another case of microsoft/TypeScript#48468
The text was updated successfully, but these errors were encountered:
extends object
Thanks for the report. I repro'd with typescript@4.7.0-dev.20220329.
typescript@4.7.0-dev.20220329
Sorry, something went wrong.
dgozman
Successfully merging a pull request may close this issue.
Context:
@playwright/test
1.20.1
Repo
4.7.0-dev.20220329
)@playwright/test
1.20.1Describe the bug
This produces the following compile errors:
This may be another case of microsoft/TypeScript#48468
The text was updated successfully, but these errors were encountered: