diff --git a/packages/serialize/types/index.d.ts b/packages/serialize/types/index.d.ts index 19bd898da..96158c0f7 100644 --- a/packages/serialize/types/index.d.ts +++ b/packages/serialize/types/index.d.ts @@ -20,8 +20,8 @@ export type CSSPseudos = { [K in CSS.Pseudos]?: CSSObject } -export interface ArrayCSSInterpolation - extends ReadonlyArray> {} +export interface ArrayCSSInterpolation + extends ReadonlyArray {} export type InterpolationPrimitive = | null @@ -34,14 +34,17 @@ export type InterpolationPrimitive = | SerializedStyles | CSSObject -export type CSSInterpolation = - | InterpolationPrimitive - | ArrayCSSInterpolation +export type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation export interface CSSOthersObject { [propertiesName: string]: - | CSSInterpolation - | ((props: Props) => CSSInterpolation) + | InterpolationPrimitive + | ReadonlyArray> + | (( + props: Props + ) => + | InterpolationPrimitive + | ReadonlyArray>) } export interface CSSObject