Skip to content

Commit 0ba5664

Browse files
alan-agius4filipesilva
authored andcommitted
refactor(@angular-devkit/build-angular): update bundle calculator make it strict compliant
1 parent 5085da3 commit 0ba5664

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/utilities/bundle-calculator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ function calculateSizes(
114114
}
115115

116116
type NonComponentStyleBudgetTypes = Exclude<Budget['type'], Type.AnyComponentStyle>;
117-
const calculatorMap: Record<NonComponentStyleBudgetTypes, { new(...args: unknown[]): Calculator }> = {
117+
type CalculatorTypes = { new(budget: Budget, chunks: Chunk[], assets: Asset[], processResults: ProcessBundleResult[]): Calculator };
118+
const calculatorMap: Record<NonComponentStyleBudgetTypes, CalculatorTypes> = {
118119
all: AllCalculator,
119120
allScript: AllScriptCalculator,
120121
any: AnyCalculator,

0 commit comments

Comments
 (0)