Skip to content

Commit

Permalink
never!!
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 11, 2019
1 parent 8a0dded commit 2e38fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-haste-map/src/ModuleMap.ts
Expand Up @@ -22,7 +22,7 @@ import H from './constants';
const EMPTY_OBJ = {} as {[key: string]: any};
const EMPTY_MAP = new Map();

type ValueType<T> = T extends Map<string, infer V> ? V : T;
type ValueType<T> = T extends Map<string, infer V> ? V : never;

export type SerializableModuleMap = {
// There is no easier way to extract the type of the entries of a Map
Expand Down

0 comments on commit 2e38fd2

Please sign in to comment.