Skip to content

Commit

Permalink
adding TypeScript definitions because TS loves to infect codebases
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Wild-Smith committed Aug 12, 2021
1 parent 4be0e14 commit 8657d20
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jest.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// In theory this should stop TypeScript from choking on that there is an extension to Jest.
declare global {
namespace jest {
interface Matchers<R> {
toBeType(received: any, expected: string): R
}
}
}

export {};

0 comments on commit 8657d20

Please sign in to comment.