From 8657d207f0fa7342a609b426675f799a1ae6c8c2 Mon Sep 17 00:00:00 2001 From: Gregory Wild-Smith Date: Thu, 12 Aug 2021 11:19:22 -0700 Subject: [PATCH] adding TypeScript definitions because TS loves to infect codebases --- jest.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 jest.d.ts diff --git a/jest.d.ts b/jest.d.ts new file mode 100644 index 0000000..dc9aceb --- /dev/null +++ b/jest.d.ts @@ -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 { + toBeType(received: any, expected: string): R + } + } + } + + export {}; \ No newline at end of file