Skip to content

Commit

Permalink
chore: Add warning comment about incorrect matcher types
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Feb 16, 2023
1 parent 0803cdf commit 7b05230
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/v3/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export type AnyTemplate =
| TemplateArray
| Matcher<unknown>;

// TODO: In the next major release, these types should be renamed so they
// don't clash with the V2 ones. Typescript merges interfaces with the same
// name, so the calculated type for any Matcher that exists in both V2 and
// V3 will be wrong. This isn't a major problem as is only likely to affect
// maintainers, and contributors but it definitely should be corrected.

/**
* Pact Matcher
*/
Expand Down

0 comments on commit 7b05230

Please sign in to comment.