From 0fb7e8c7cfd3d3ff4b50704bc33ad46518dc4c82 Mon Sep 17 00:00:00 2001 From: liqing-yang Date: Tue, 24 Jun 2025 17:11:04 +0800 Subject: [PATCH] add return type for custombuilder-passing Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICHHAK Signed-off-by: liqing-yang --- .../homecheck/src/checker/migration/CustomBuilderCheck.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ets2panda/linter/homecheck/src/checker/migration/CustomBuilderCheck.ts b/ets2panda/linter/homecheck/src/checker/migration/CustomBuilderCheck.ts index e5591c8c30..567db2a554 100644 --- a/ets2panda/linter/homecheck/src/checker/migration/CustomBuilderCheck.ts +++ b/ets2panda/linter/homecheck/src/checker/migration/CustomBuilderCheck.ts @@ -228,7 +228,7 @@ export class CustomBuilderCheck implements BaseChecker { const increaseSpaces = FixUtils.getIndentWidth(sourceFile, fixPosition.startLine); const space = ' '; - let res = `() => {${eol}`; + let res = `(): void => {${eol}`; const originalLineStrs = originalText.split(eol); res += `${space.repeat(startLineIndent + increaseSpaces)}${originalLineStrs[0]}${eol}`; for (let index = 1; index < originalLineStrs.length; index++) { -- Gitee