mirror of
https://github.com/ranxianglei/billion-context.git
synced 2026-12-03 14:31:59 +08:00
23 lines
663 B
TypeScript
23 lines
663 B
TypeScript
interface PretestCacheComponent {
|
|
name: string;
|
|
dir: string;
|
|
inputs: string[];
|
|
}
|
|
|
|
interface PretestCacheResult {
|
|
name: string;
|
|
hit: boolean;
|
|
ms: number;
|
|
}
|
|
|
|
export const MARKER_NAME: string;
|
|
export const COMPONENTS: PretestCacheComponent[];
|
|
export function hashComponent(root: string, comp: PretestCacheComponent, platform?: string): string;
|
|
export function markerIsFresh(distDir: string, hash: string): boolean;
|
|
export function runPretestCache(opts?: {
|
|
root?: string;
|
|
components?: PretestCacheComponent[];
|
|
log?: (line: string) => void;
|
|
build?: (comp: PretestCacheComponent, root: string) => void;
|
|
}): PretestCacheResult[];
|