From a450c83945d292005ddff59a83074a12b515d916 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sat, 9 Feb 2019 10:50:38 +0100 Subject: [PATCH] typeof import --- types/jest/index.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 70ac78cbd1..f0d7b879cb 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -21,8 +21,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 -import jestDiff = require('jest-diff'); - declare var beforeAll: jest.Lifecycle; declare var beforeEach: jest.Lifecycle; declare var afterAll: jest.Lifecycle; @@ -348,7 +346,7 @@ declare namespace jest { utils: { readonly EXPECTED_COLOR: (text: string) => string; readonly RECEIVED_COLOR: (text: string) => string; - diff: typeof jestDiff; + diff: typeof import('jest-diff'); ensureActualIsNumber(actual: any, matcherName?: string): void; ensureExpectedIsNumber(actual: any, matcherName?: string): void; ensureNoExpected(actual: any, matcherName?: string): void;