1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { StatsCompilation } from 'webpack';
|
9 | import { Budget } from '../builders/browser/schema';
|
10 | interface Threshold {
|
11 | limit: number;
|
12 | type: ThresholdType;
|
13 | severity: ThresholdSeverity;
|
14 | }
|
15 | declare enum ThresholdType {
|
16 | Max = "maximum",
|
17 | Min = "minimum"
|
18 | }
|
19 | export declare enum ThresholdSeverity {
|
20 | Warning = "warning",
|
21 | Error = "error"
|
22 | }
|
23 | export interface BudgetCalculatorResult {
|
24 | severity: ThresholdSeverity;
|
25 | message: string;
|
26 | label?: string;
|
27 | }
|
28 | export declare function calculateThresholds(budget: Budget): IterableIterator<Threshold>;
|
29 | export declare function checkBudgets(budgets: Budget[], webpackStats: StatsCompilation): IterableIterator<BudgetCalculatorResult>;
|
30 | export declare function checkThresholds(thresholds: IterableIterator<Threshold>, size: number, label?: string): IterableIterator<BudgetCalculatorResult>;
|
31 | export {};
|