From dabd70c4c9853cd7aae13051de8476791a823e5f Mon Sep 17 00:00:00 2001 From: Marc Redemske Date: Mon, 15 Nov 2021 19:17:44 +0100 Subject: [PATCH 1/2] fix(presets): use jest types for exposed default options --- presets/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presets/index.d.ts b/presets/index.d.ts index fbc2c6aaca..a1f4dabf81 100644 --- a/presets/index.d.ts +++ b/presets/index.d.ts @@ -1,7 +1,7 @@ -import type { TsJestPresets } from 'ts-jest/dist/types'; +import type { Config } from '@jest/types'; declare const _default: { - defaults: TsJestPresets; - defaultsESM: TsJestPresets; + defaults: Config.InitialOptions; + defaultsESM: Config.InitialOptions; }; export = _default; From db1af66a6fb1aa9c46e40d13050d8b92b2416c7f Mon Sep 17 00:00:00 2001 From: Marc Redemske Date: Mon, 15 Nov 2021 20:26:52 +0100 Subject: [PATCH 2/2] fixup! fix(presets): use jest types for exposed default options --- presets/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presets/index.d.ts b/presets/index.d.ts index a1f4dabf81..85da85b9bc 100644 --- a/presets/index.d.ts +++ b/presets/index.d.ts @@ -1,7 +1,7 @@ -import type { Config } from '@jest/types'; +import type { InitialOptionsTsJest } from 'ts-jest/dist/types'; declare const _default: { - defaults: Config.InitialOptions; - defaultsESM: Config.InitialOptions; + defaults: InitialOptionsTsJest; + defaultsESM: InitialOptionsTsJest; }; export = _default;