We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d639a commit d028e45Copy full SHA for d028e45
index.d.ts
@@ -7,7 +7,13 @@ type DiffOptions = {
7
};
8
9
declare namespace jest {
10
- interface Matchers {
11
- toMatchDiffSnapshot(valueB: any, options?: DiffOptions): boolean
+ interface Matchers<R> {
+ toMatchDiffSnapshot(valueB: any, options?: DiffOptions): R
12
}
13
14
+
15
+declare module 'snapshot-diff' {
16
+ function diff(a: any, b: any, options?: DiffOptions): string;
17
+ namespace diff {}
18
+ export = diff;
19
+}
0 commit comments