ThierryadeCoverageReporter is no longer assignable to ReporterClass under TypeScript 6 #11
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thierryade/thierryade-wdio#11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tsc --noEmitfails for any consumer that putsThierryadeCoverageReporterbare into
reporters: [...](e.g.wdio.conf.ts) once upgraded toTypeScript 6:
Cause:
ThierryadeCoverageReporterOptionsonly declaresoutDir?: string,with no index signature. TypeScript 6 checks constructor-parameter variance
against
ReporterClass(new (options: Partial<Options>): ReporterInstance,where
Optionshas an index signature[key: string]: unknown) morestrictly -- without an index signature on our side, the two types
structurally have "no properties in common".
Minimal repro confirmed on this repo with
typescript@6.0.3+@wdio/types@10.1.0.First encountered on
Filao/e2ePR #10 (Renovate bump oftypescriptto v6).ThierryadeCoverageReporter n'est plus assignable à ReporterClass sous TypeScript 6to ThierryadeCoverageReporter is no longer assignable to ReporterClass under TypeScript 6