fix: make ThierryadeCoverageReporterOptions assignable under TypeScript 6 #12
No reviewers
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!12
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ts6-reporter-options-variance"
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?
Closes #11
TypeScript 6 tightened constructor-parameter variance checks:
Partial<ThierryadeCoverageReporterOptions>(onlyoutDir?: string,no index signature) has no properties in common with the base
reporter's
Partial<Options>(which has[key: string]: unknown), soThierryadeCoverageReporterstops being a valid barereporters: [...]entry.Fix: add the same index signature
@wdio/types' ownOptionsinterface has, and a compile-time guard (
src/reporter.ts) so afuture regression fails this repo's own build instead of a
consumer's
tsc.pnpm run build,pnpm run lint,pnpm run testall pass locally.🤖 Generated with Claude Code
https://claude.ai/code/session_013EeueXTWCT4Y6EbeideZcm
📊 Rapports Argus pour cette PR