Skip to content

Commit

Permalink
remove props arg from CSSInterpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jan 9, 2024
1 parent 27b03d8 commit 2fb22d4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/serialize/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type CSSPseudos<Props = unknown> = {
[K in CSS.Pseudos]?: CSSObject<Props>
}

export interface ArrayCSSInterpolation<Props = unknown>
extends ReadonlyArray<CSSInterpolation<Props>> {}
export interface ArrayCSSInterpolation
extends ReadonlyArray<CSSInterpolation> {}

export type InterpolationPrimitive<Props = unknown> =
| null
Expand All @@ -34,14 +34,17 @@ export type InterpolationPrimitive<Props = unknown> =
| SerializedStyles
| CSSObject<Props>

export type CSSInterpolation<Props = unknown> =
| InterpolationPrimitive<Props>
| ArrayCSSInterpolation<Props>
export type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation

export interface CSSOthersObject<Props = unknown> {
[propertiesName: string]:
| CSSInterpolation<Props>
| ((props: Props) => CSSInterpolation<Props>)
| InterpolationPrimitive<Props>
| ReadonlyArray<InterpolationPrimitive<Props>>
| ((
props: Props
) =>
| InterpolationPrimitive<Props>
| ReadonlyArray<InterpolationPrimitive<Props>>)
}

export interface CSSObject<Props = unknown>
Expand Down

0 comments on commit 2fb22d4

Please sign in to comment.