Skip to content

Commit

Permalink
chore: use named tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 25, 2020
1 parent 326b165 commit c328bcd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/jest-haste-map/src/types.ts
Expand Up @@ -45,12 +45,12 @@ export type HasteImpl = {
export type FileData = Map<Config.Path, FileMetaData>;

export type FileMetaData = [
/* id */ string,
/* mtime */ number,
/* size */ number,
/* visited */ 0 | 1,
/* dependencies */ string,
/* sha1 */ string | null | undefined,
id: string,
mtime: number,
size: number,
visited: 0 | 1,
dependencies: string,
sha1: string | null | undefined,
];

export type MockData = Map<string, Config.Path>;
Expand Down Expand Up @@ -83,7 +83,7 @@ export type RawModuleMap = {
};

type ModuleMapItem = {[platform: string]: ModuleMetaData};
export type ModuleMetaData = [Config.Path, /* type */ number];
export type ModuleMetaData = [path: Config.Path, type: number];

export type HType = {
ID: 0;
Expand Down

0 comments on commit c328bcd

Please sign in to comment.