mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
fix(extend): improve signature of interface ExpectExtendMap (#27124)
Jest custom matcher support both `string` and `() => string` for message property
> d3a6a7400a/packages/expect/src/index.js (L351)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
3500f2e9ea
commit
215834ee2f
2
types/jest/index.d.ts
vendored
2
types/jest/index.d.ts
vendored
@@ -342,7 +342,7 @@ declare namespace jest {
|
||||
}
|
||||
|
||||
interface ExpectExtendMap {
|
||||
[key: string]: (this: MatcherUtils, received: any, ...actual: any[]) => { message(): string, pass: boolean } | Promise<{ message(): string, pass: boolean }>;
|
||||
[key: string]: (this: MatcherUtils, received: any, ...actual: any[]) => { message(): string | (() => string), pass: boolean } | Promise<{ message(): string, pass: boolean }>;
|
||||
}
|
||||
|
||||
interface SnapshotSerializerOptions {
|
||||
|
||||
Reference in New Issue
Block a user