Skip to content

Commit

Permalink
chore: use named tuples (#10445)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Feb 9, 2022
1 parent e98d044 commit 78faa85
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/jest-haste-map/src/types.ts
Original file line number Diff line number Diff line change
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 @@ -123,7 +123,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 78faa85

Please sign in to comment.