From 7c02c738e9cb8e7d54491d5438e6a3b41e77269c Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Tue, 8 Feb 2022 17:06:07 +0800 Subject: [PATCH] houhaoyu@huawei.com improve ts type Signed-off-by: houhaoyu Change-Id: Ia28e472c6de9926aa6084bc9544df1eeb3f266ca --- api/@internal/component/ets/common.d.ts | 46 ++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 1d970cf3da..5215ca1707 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -103,6 +103,18 @@ declare const Watch: (value: string) => PropertyDecorator; */ declare const Builder: MethodDecorator; +/** + * Defining Styles MethodDecorator + * @since 8 + */ +declare const Styles: MethodDecorator; + +/** + * Defining Extend MethodDecorator + * @since 7 + */ +declare const Extend: MethodDecorator & ((value: any) => MethodDecorator); + /** * Defining CustomDialog ClassDecorator * @since 7 @@ -1398,6 +1410,32 @@ declare class CommonMethod { stateStyles(value: StateStyels): T; } +/** + * CommonAttribute + * @since 7 + */ +declare class CommonAttribute extends CommonMethod {} + +/** + * CommonInterface + * @since 7 + */ +interface CommonInterface { + (): CommonAttribute; +} + +/** + * CommonInstance + * @since 7 + */ +declare const CommonInstance: CommonAttribute; + +/** + * Common + * @since 7 + */ +declare const Common: CommonInterface; + /** * Defines the CustomBuilder Type. * @since 7 @@ -1494,14 +1532,14 @@ declare class CustomComponent { build(): void; /** - * Private aboutToAppear Method + * aboutToAppear Method * @since 7 */ - private aboutToAppear?(): void; + aboutToAppear?(): void; /** - * Private aboutToDisappear Method + * aboutToDisappear Method * @since 7 */ - private aboutToDisappear?(): void; + aboutToDisappear?(): void; } -- Gitee