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.1 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 | import { StatsCompilation } from 'webpack';
|
---|
9 | import { Budget } from '../browser/schema';
|
---|
10 | import { ProcessBundleResult } from '../utils/process-bundle';
|
---|
11 | interface Threshold {
|
---|
12 | limit: number;
|
---|
13 | type: ThresholdType;
|
---|
14 | severity: ThresholdSeverity;
|
---|
15 | }
|
---|
16 | declare enum ThresholdType {
|
---|
17 | Max = "maximum",
|
---|
18 | Min = "minimum"
|
---|
19 | }
|
---|
20 | export declare enum ThresholdSeverity {
|
---|
21 | Warning = "warning",
|
---|
22 | Error = "error"
|
---|
23 | }
|
---|
24 | export declare function calculateThresholds(budget: Budget): IterableIterator<Threshold>;
|
---|
25 | export declare function checkBudgets(budgets: Budget[], webpackStats: StatsCompilation, processResults: ProcessBundleResult[]): IterableIterator<{
|
---|
26 | severity: ThresholdSeverity;
|
---|
27 | message: string;
|
---|
28 | }>;
|
---|
29 | export declare function checkThresholds(thresholds: IterableIterator<Threshold>, size: number, label?: string): IterableIterator<{
|
---|
30 | severity: ThresholdSeverity;
|
---|
31 | message: string;
|
---|
32 | }>;
|
---|
33 | export {};
|
---|
Note:
See
TracBrowser
for help on using the repository browser.