Skip to content

Commit

Permalink
Fix type error when using array value in VueUse Motion directive Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatihyildiz authored Feb 21, 2024
1 parent 35cd727 commit 6e85ff4
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions src/types/variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,31 @@ export interface SVGPathProperties {
/**
* Transform properties
*/
export interface TransformProperties {
x?: string | number
y?: string | number
z?: string | number
translateX?: string | number
translateY?: string | number
translateZ?: string | number
rotate?: string | number
rotateX?: string | number
rotateY?: string | number
rotateZ?: string | number
scale?: string | number
scaleX?: string | number
scaleY?: string | number
scaleZ?: string | number
skew?: string | number
skewX?: string | number
skewY?: string | number
originX?: string | number
originY?: string | number
originZ?: string | number
perspective?: string | number
transformPerspective?: string | number
type TransformValue = string | number;

Check failure on line 21 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`

Check failure on line 21 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Extra semicolon

interface TransformProperties {
x?: TransformValue | TransformValue[];

Check failure on line 24 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
y?: TransformValue | TransformValue[];

Check failure on line 25 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
z?: TransformValue | TransformValue[];

Check failure on line 26 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
translateX?: TransformValue | TransformValue[];

Check failure on line 27 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
translateY?: TransformValue | TransformValue[];

Check failure on line 28 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
translateZ?: TransformValue | TransformValue[];

Check failure on line 29 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
rotate?: TransformValue | TransformValue[];

Check failure on line 30 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
rotateX?: TransformValue | TransformValue[];

Check failure on line 31 in src/types/variants.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Delete `;`
rotateY?: TransformValue | TransformValue[];
rotateZ?: TransformValue | TransformValue[];
scale?: TransformValue | TransformValue[];
scaleX?: TransformValue | TransformValue[];
scaleY?: TransformValue | TransformValue[];
scaleZ?: TransformValue | TransformValue[];
skew?: TransformValue | TransformValue[];
skewX?: TransformValue | TransformValue[];
skewY?: TransformValue | TransformValue[];
originX?: TransformValue | TransformValue[];
originY?: TransformValue | TransformValue[];
originZ?: TransformValue | TransformValue[];
perspective?: TransformValue | TransformValue[];
transformPerspective?: TransformValue | TransformValue[];
}

/**
Expand Down

0 comments on commit 6e85ff4

Please sign in to comment.