source: trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/action-cache.d.ts@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <reference types="node" />
9import * as fs from 'fs';
10import { ProcessBundleOptions, ProcessBundleResult } from './process-bundle';
11export interface CacheEntry {
12 path: string;
13 size: number;
14 integrity?: string;
15}
16export declare class BundleActionCache {
17 private readonly cachePath;
18 private readonly integrityAlgorithm?;
19 constructor(cachePath: string, integrityAlgorithm?: string | undefined);
20 static copyEntryContent(entry: CacheEntry | string, dest: fs.PathLike): void;
21 generateIntegrityValue(content: string): string;
22 generateBaseCacheKey(content: string): string;
23 generateCacheKeys(action: ProcessBundleOptions): string[];
24 getCacheEntries(cacheKeys: (string | undefined)[]): Promise<(CacheEntry | null)[] | false>;
25 getCachedBundleResult(action: ProcessBundleOptions): Promise<ProcessBundleResult | null>;
26}
Note: See TracBrowser for help on using the repository browser.