UNPKG

503 BTypeScriptView Raw
1import { DepTree } from './index';
2import { PartitionedCycles } from './cycles';
3declare type NodeId = string;
4export declare type MemoizationMap = Map<NodeId, {
5 depTree: DepTree;
6 cycleNodeIds?: Set<NodeId>;
7}>;
8export declare function memoize(nodeId: NodeId, memoizationMap: MemoizationMap, depTree: DepTree, partitionedCycles: PartitionedCycles): void;
9export declare function getMemoizedDepTree(nodeId: NodeId, ancestors: NodeId[], memoizationMap: MemoizationMap): DepTree | null;
10export {};