diff --git a/packages/react/index.d.ts b/packages/react/index.d.ts index 67b45ce..9020765 100644 --- a/packages/react/index.d.ts +++ b/packages/react/index.d.ts @@ -1,8 +1,8 @@ import { + CSSProperties, Component, ComponentProps, ComponentType, - CSSProperties, ElementType, PropsWithRef, PropsWithoutRef, @@ -74,9 +74,9 @@ export type BoxComponent = < export type GetProperties = Partial<{ [P in keyof ConfigProperties]: ConfigProperties[P] extends ( - value: unknown - ) => CSSProperties - ? ValidPropertyName

& Parameters[0] + value: infer V + ) => unknown + ? V : never; }>; @@ -84,7 +84,9 @@ export type Config = { conditions?: { [P in ConditionName]: ValidConditionName

& Condition; }; - properties?: ConfigProperties; + properties?: { + [P in keyof ConfigProperties]: ValidPropertyName

& ConfigProperties[P]; + } & Record CSSProperties>; fallback?: "revert-layer" | "unset"; debug?: boolean; };