Skip to content

Commit bac79d4

Browse files
committed
refactor(@angular-devkit/build-angular): increase type safety in bundle-context
Currently the `result` variable will be set to `any` which caused a large part of this file not to be safely typed.
1 parent 479b67f commit bac79d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/tools/esbuild/bundler-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class BundlerContext {
207207
this.watchFiles.clear();
208208
}
209209

210-
let result;
210+
let result: BuildResult<{ metafile: true; write: false }>;
211211
try {
212212
if (this.#esbuildContext) {
213213
// Rebuild using the existing incremental build context

0 commit comments

Comments
 (0)