From eb43a5087a67ea04abed6ae22092e053f1c305ca Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Mon, 3 Feb 2025 11:32:05 +0300 Subject: [PATCH] Make TS the same as ArkTS Signed-off-by: Alexander Gorshenev --- arkoala/arkui/src/ArkStructCommon.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arkoala/arkui/src/ArkStructCommon.ts b/arkoala/arkui/src/ArkStructCommon.ts index 98c6bbbb1..290f82386 100644 --- a/arkoala/arkui/src/ArkStructCommon.ts +++ b/arkoala/arkui/src/ArkStructCommon.ts @@ -16,6 +16,7 @@ import { remember } from "@koalaui/runtime" import { CustomComponentImpl } from "./CustomComponent"; import { ArkComponentRoot } from "./ArkComponentRoot"; +import { ArkCommonMethodComponent } from "./ArkCommon"; /** base class for user's structs */ export abstract class ArkStructBase extends CustomComponentImpl { @@ -26,7 +27,7 @@ export abstract class ArkStructBase extends CustomComponentImpl { /** @memo */ static _instantiate, T_Options>( /** @memo */ - attributes: undefined | ((instance: T) => void), + attributes: undefined | ((instance: ArkCommonMethodComponent) => void), factory: () => T, /** @memo */ arg1?: () => void, @@ -51,7 +52,7 @@ export abstract class ArkStructBase extends CustomComponentImpl { /** @memo */ _buildWrapper( /** @memo */ - attributes: undefined | ((instance: T) => void), + attributes: undefined | ((instance: ArkCommonMethodComponent) => void), /** @memo */ content?: () => void, initializers?: T_Options @@ -65,7 +66,7 @@ export abstract class ArkStructBase extends CustomComponentImpl { /** @memo */ abstract __build( /** @memo */ - attributes: undefined | ((instance: T) => void), + attributes: undefined | ((instance: ArkCommonMethodComponent) => void), /** @memo */ content?: () => void, initializers?: T_Options -- Gitee