Skip to content

Commit

Permalink
fix(hippy-react): fix TransformsStyle declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdyqin authored and zealotchen0 committed Jul 18, 2024
1 parent 3d8945c commit 634c2f2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 634c2f2

Please sign in to comment.