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