UNPKG

@polyfill-io-aot/builder

Version:

This is the builder module for polyfill-io-aot.

26 lines (25 loc) 917 B
/// <reference types="node" /> import * as EventEmitter from 'events'; import { PartialPolyfillBuilderConfig, PolyfillBuilderConfig } from './interfaces/PolyfillBuilderConfig'; /** Code polyfill builder class */ export declare class PolyfillBuilder extends EventEmitter { /** Builder configuration */ readonly conf: Readonly<PolyfillBuilderConfig>; /** * Constructor * @param conf Builder configuration */ constructor(conf?: PartialPolyfillBuilderConfig); /** Completion promise returned by {@link #start()} */ readonly promise: Promise<void>; /** Number of seconds the builder spent building */ readonly runtimeSeconds: string; /** * Start the build promise * @returns A promise that completes on the END event and rejects on the ERROR event */ start(): Promise<void>; private initChain; private initLogs; private initUaGenerators; }