From 2e38fd2be545b95fb66132cc9fec2f3b06a82aa2 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 11 Feb 2019 23:37:33 +0100 Subject: [PATCH] never!! --- packages/jest-haste-map/src/ModuleMap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-haste-map/src/ModuleMap.ts b/packages/jest-haste-map/src/ModuleMap.ts index 7441fed6b0c7..5961c1253670 100644 --- a/packages/jest-haste-map/src/ModuleMap.ts +++ b/packages/jest-haste-map/src/ModuleMap.ts @@ -22,7 +22,7 @@ import H from './constants'; const EMPTY_OBJ = {} as {[key: string]: any}; const EMPTY_MAP = new Map(); -type ValueType = T extends Map ? V : T; +type ValueType = T extends Map ? V : never; export type SerializableModuleMap = { // There is no easier way to extract the type of the entries of a Map