From 634c2f2da6a9a855c8c30144442b0025d7f0d8eb Mon Sep 17 00:00:00 2001 From: tomdyqin Date: Wed, 6 Dec 2023 13:17:30 +0800 Subject: [PATCH] fix(hippy-react): fix TransformsStyle declaration --- packages/global.d.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/global.d.ts b/packages/global.d.ts index 3735b137c1e..63be9f551b7 100644 --- a/packages/global.d.ts +++ b/packages/global.d.ts @@ -176,22 +176,22 @@ declare namespace HippyTypes { } export interface Transform { - perspective?: number | Animation; - rotate?: string | Animation; - rotateX?: string | Animation; - rotateY?: string | Animation; - rotateZ?: string | Animation; - scale?: number | Animation; - scaleX?: number | Animation; - scaleY?: number | Animation; - translateX?: number | Animation; - translateY?: number | Animation; - skewX?: string | Animation; - skewY?: string | Animation; - } - - // eslint-disable-next-line @typescript-eslint/no-empty-interface + perspective?: number | Animation | AnimationSet; + rotate?: string | Animation | AnimationSet; + rotateX?: string | Animation | AnimationSet; + rotateY?: string | Animation | AnimationSet; + rotateZ?: string | Animation | AnimationSet; + scale?: number | Animation | AnimationSet; + scaleX?: number | Animation | AnimationSet; + scaleY?: number | Animation | AnimationSet; + translateX?: number | Animation | AnimationSet; + translateY?: number | Animation | AnimationSet; + skewX?: string | Animation | AnimationSet; + skewY?: string | Animation | AnimationSet; + } + export interface TransformsStyle { + transform?: Transform[]; } export type BorderStyle = 'solid' | 'dotted' | 'dashed' | 'none';