Paul Gschwendtner e99af184ab build: update API goldens after api-extractor update (#42737)
Given we have updated API extractor to the most recent
version, we need to update the API goldens because the
latest version uses alias exports to avoid collisions with
default library globals (like `Event`).

PR Close #42737
2021-07-02 10:08:03 -07:00

2.0 KiB

API Report File for "@angular/service-worker_config"

Do not edit this file. It is a report generated by API Extractor.


// @public
export interface AssetGroup {
    // (undocumented)
    cacheQueryOptions?: Pick<CacheQueryOptions, 'ignoreSearch'>;
    // (undocumented)
    installMode?: 'prefetch' | 'lazy';
    // (undocumented)
    name: string;
    // (undocumented)
    resources: {
        files?: Glob[];
        urls?: Glob[];
    };
    // (undocumented)
    updateMode?: 'prefetch' | 'lazy';
}

// @public
export interface Config {
    // (undocumented)
    appData?: {};
    // (undocumented)
    assetGroups?: AssetGroup[];
    // (undocumented)
    dataGroups?: DataGroup[];
    // (undocumented)
    index: string;
    // (undocumented)
    navigationRequestStrategy?: 'freshness' | 'performance';
    // (undocumented)
    navigationUrls?: string[];
}

// @public
export interface DataGroup {
    // (undocumented)
    cacheConfig: {
        maxSize: number;
        maxAge: Duration;
        timeout?: Duration;
        strategy?: 'freshness' | 'performance';
    };
    // (undocumented)
    cacheQueryOptions?: Pick<CacheQueryOptions, 'ignoreSearch'>;
    // (undocumented)
    name: string;
    // (undocumented)
    urls: Glob[];
    // (undocumented)
    version?: number;
}

// @public (undocumented)
export type Duration = string;

// @public
export interface Filesystem {
    // (undocumented)
    hash(file: string): Promise<string>;
    // (undocumented)
    list(dir: string): Promise<string[]>;
    // (undocumented)
    read(file: string): Promise<string>;
    // (undocumented)
    write(file: string, contents: string): Promise<void>;
}

// @public
class Generator_2 {
    constructor(fs: Filesystem, baseHref: string);
    // (undocumented)
    readonly fs: Filesystem;
    // (undocumented)
    process(config: Config): Promise<Object>;
    }

export { Generator_2 as Generator }

// @public (undocumented)
export type Glob = string;


// (No @packageDocumentation comment for this package)