Skip to content

Commit d028e45

Browse files
dsiffordthymikee
authored andcommitted
Improve TypeScript defs (#13)
1 parent 56d639a commit d028e45

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ type DiffOptions = {
77
};
88

99
declare namespace jest {
10-
interface Matchers {
11-
toMatchDiffSnapshot(valueB: any, options?: DiffOptions): boolean
10+
interface Matchers<R> {
11+
toMatchDiffSnapshot(valueB: any, options?: DiffOptions): R
1212
}
1313
}
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

Comments
 (0)