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 Oct 9, 2021
1 parent dd859ac commit 50db944
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 @@ -85,12 +85,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 @@ -130,7 +130,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 50db944

Please sign in to comment.