-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathaction-executor.d.ts
37 lines (37 loc) · 1.17 KB
/
action-executor.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { I18nOptions } from './i18n-options';
import { InlineOptions, ProcessBundleOptions, ProcessBundleResult } from './process-bundle';
export declare class BundleActionExecutor {
private workerOptions;
private readonly sizeThreshold;
private largeWorker?;
private smallWorker?;
private cache?;
constructor(workerOptions: {
cachePath?: string;
i18n: I18nOptions;
}, integrityAlgorithm?: string, sizeThreshold?: number);
private static executeMethod;
private ensureLarge;
private ensureSmall;
private executeAction;
process(action: ProcessBundleOptions): Promise<ProcessBundleResult>;
processAll(actions: Iterable<ProcessBundleOptions>): AsyncIterable<ProcessBundleResult>;
inline(action: InlineOptions): Promise<{
file: string;
diagnostics: {
type: string;
message: string;
}[];
count: number;
}>;
inlineAll(actions: Iterable<InlineOptions>): AsyncIterable<{
file: string;
diagnostics: {
type: string;
message: string;
}[];
count: number;
}>;
private static executeAll;
stop(): Promise<void>;
}