From d35533919cc1ad4f6647c71aeb3ff20dba57f238 Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Fri, 3 Jun 2022 11:04:12 +0800 Subject: [PATCH] fixed c15c946 from https://gitee.com/houhaoyu/interface_sdk-js/pulls/1891 houhaoyu@huawei.com fix wrong type Signed-off-by: houhaoyu Change-Id: I3a631ce921d2bb1123340fff626b01fc8aa9d2e6 --- api/@internal/component/ets/gesture.d.ts | 2 +- api/@internal/component/ets/rect.d.ts | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api/@internal/component/ets/gesture.d.ts b/api/@internal/component/ets/gesture.d.ts index 0381bdf923..7f98ed77b2 100644 --- a/api/@internal/component/ets/gesture.d.ts +++ b/api/@internal/component/ets/gesture.d.ts @@ -180,7 +180,7 @@ interface FingerInfo { * @since 7 */ declare type GestureType = - | TapGestureInterface + TapGestureInterface | LongPressGestureInterface | PanGestureInterface | PinchGestureInterface diff --git a/api/@internal/component/ets/rect.d.ts b/api/@internal/component/ets/rect.d.ts index a20aa44f46..3bc5bdab97 100644 --- a/api/@internal/component/ets/rect.d.ts +++ b/api/@internal/component/ets/rect.d.ts @@ -24,11 +24,11 @@ interface RectInterface { */ new ( value?: - | { - width?: number | string; - height?: number | string; - radius?: number | string | Array; - } + { + width?: number | string; + height?: number | string; + radius?: number | string | Array; + } | { width?: number | string; height?: number | string; @@ -43,11 +43,11 @@ interface RectInterface { */ ( value?: - | { - width?: number | string; - height?: number | string; - radius?: number | string | Array; - } + { + width?: number | string; + height?: number | string; + radius?: number | string | Array; + } | { width?: number | string; height?: number | string; -- Gitee