From 71b8b93f803ea61fcbb41e374821d68e8e7ac376 Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Sat, 28 Jan 2023 15:01:51 +0800 Subject: [PATCH] houhaoyu@huawei.com fix comments Signed-off-by: houhaoyu Change-Id: If535c1a3e88dc6281aeb413780feb349cedd4be7 --- api/@internal/component/ets/common.d.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index ed17b02859..c601c2de02 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -19,8 +19,14 @@ declare const Component: ClassDecorator; /** - * Defining Entry ClassDecorator. - * Only API 9 and later support parameters. + * Defines Entry ClassDecorator. + * @returns { ClassDecorator } Entry is a ClassDecorator. + * @since 7 + */ +/** + * Defines Entry ClassDecorator. + * @returns { ClassDecorator & ((storage?: LocalStorage) => ClassDecorator) } + * Entry is a ClassDecorator and it supports LocalStorage as parameters. * @since 9 */ declare const Entry: ClassDecorator & ((storage?: LocalStorage) => ClassDecorator); @@ -134,7 +140,8 @@ declare const LocalStorageLink: (value: string) => PropertyDecorator; declare const LocalStorageProp: (value: string) => PropertyDecorator; /** - * Get context. + * Obtains the Context object associated with a component on the page. + * @param { Object } component - indicate the component on the page. * @StageModelOnly * @since 9 */ -- Gitee