UNPKG

453 BTypeScriptView Raw
1export interface CompiledModule {
2 fileName: string;
3 text: string;
4 map?: string;
5 mapName?: string;
6}
7export declare function findCompiledModule(fileName: string): CompiledModule;
8export interface CacheParams<T> {
9 source: string;
10 options: any;
11 transform: () => Promise<T>;
12 identifier: any;
13 directory: string;
14}
15export declare function cache<T>(params: CacheParams<T>): Promise<{
16 cached: boolean;
17 result: T;
18}>;