Skip to content

Commit

Permalink
Add getCacheFilePath to HasteMap interface
Browse files Browse the repository at this point in the history
Summary: Metro doesn't use this directly but we need `HasteMap.getCacheFileName` for some internal tooling.

Reviewed By: motiz88

Differential Revision: D33432497

fbshipit-source-id: a90d56196a332ef697fb6e77cf14c25466489bc8
  • Loading branch information
robhogan authored and nevilm-lt committed Apr 22, 2022
1 parent 7dba2f2 commit 1c36ebe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/metro/src/node-haste/DependencyGraph/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ export type ModuleMap = {
...
};

// Interface as used by node-haste, satisfied by JestHasteMap
// Interface as used by node-haste / internal tools, satisfied by JestHasteMap
export interface HasteMap extends EventEmitter {
build: () => Promise<{hasteFS: HasteFS, moduleMap: ModuleMap}>;
end: () => void;
getCacheFilePath: () => string;
}

0 comments on commit 1c36ebe

Please sign in to comment.