From 517d7eac507d42240ce1c0b5450c06c3d3a82d1d Mon Sep 17 00:00:00 2001 From: Eugene Date: Fri, 26 Jul 2024 17:19:13 +0300 Subject: [PATCH] ownerState type safety in variants Signed-off-by: Eugene --- packages/pigment-css-react/src/styled.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pigment-css-react/src/styled.d.ts b/packages/pigment-css-react/src/styled.d.ts index f86241df..cbb329ea 100644 --- a/packages/pigment-css-react/src/styled.d.ts +++ b/packages/pigment-css-react/src/styled.d.ts @@ -6,8 +6,8 @@ import { Primitve } from './keyframes'; type Falsy = false | 0 | '' | null | undefined; -export interface StyledVariants { - props: Partial | ((props: Props) => boolean); +export interface StyledVariants { + props: Partial | Partial | ((props: Props) => boolean); style: CSSObject; }