From 2fb22d4dc23a7bc7a81cbd88eacaaf02ea9d1077 Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Tue, 9 Jan 2024 11:52:30 +0700 Subject: [PATCH] remove props arg from CSSInterpolation --- packages/serialize/types/index.d.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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