Open 6XGate opened 3 days ago
Likely due missing
& ThisType<T>
on the end of the type definitiontype MatchersObject<T extends MatcherState = MatcherState> = Record<string, RawMatcherFn<T>>
Not sure where this would be. Feel free to send a PR if you have a fix :+1:
Describe the bug
When using using
expect.extend
, generic functions on the passed object has the wrongthis
type. Likely due missing& ThisType<T>
on the end of the type definitiontype MatchersObject<T extends MatcherState = MatcherState> = Record<string, RawMatcherFn<T>>
Reproduction
This results in a TS2339 error on the two message template string warning
Property 'stringify' does not exist on type 'RawMatcherFn<MatcherState>'
System Info
Used Package Manager
yarn
Validations