Skip to content

Commit 5cffd36

Browse files
clydinalan-agius4
authored andcommitted
build: add function type annotation for bazel win32 build support
Due to the file structure of Bazel Windows builds, type annotations are required in certain locations to successfully build the project. Function return type annotations are generally recommended anyway within the code.
1 parent 24d1d53 commit 5cffd36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/angular_devkit/build_angular/src/tools/esbuild/javascript-transformer-worker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ interface JavaScriptTransformRequest {
2525
const textDecoder = new TextDecoder();
2626
const textEncoder = new TextEncoder();
2727

28-
export default async function transformJavaScript(request: JavaScriptTransformRequest) {
28+
export default async function transformJavaScript(
29+
request: JavaScriptTransformRequest,
30+
): Promise<unknown> {
2931
const { filename, data, ...options } = request;
3032
const textData = typeof data === 'string' ? data : textDecoder.decode(data);
3133

0 commit comments

Comments
 (0)