From f4f5d3205d1c80e545a32c02c6a66e7e91386f7f Mon Sep 17 00:00:00 2001 From: Ahn Date: Mon, 8 Feb 2021 15:54:32 +0100 Subject: [PATCH] feat(config): support typed config options for jest config typescript (#2336) --- src/types.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/types.ts b/src/types.ts index 5abc0d0639..dab618cc4e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -154,6 +154,14 @@ export interface TsJestGlobalOptions { stringifyContentPathRegex?: string | RegExp } +export interface GlobalConfigTsJest extends Config.ConfigGlobals { + 'ts-jest': TsJestGlobalOptions +} + +export interface InitialOptionsTsJest extends Config.InitialOptions { + globals?: GlobalConfigTsJest +} + interface TsJestConfig$tsConfig$file { kind: 'file' value: string | undefined