From 144c09ed645e305f719e644b9bbc225defcd31ad Mon Sep 17 00:00:00 2001 From: Pedro Di Martino Date: Tue, 30 Jul 2024 11:14:44 +0200 Subject: [PATCH] Fix type parameter circular constraint error --- .../bento-design-system/src/Typography/TypographyProps.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/bento-design-system/src/Typography/TypographyProps.ts b/packages/bento-design-system/src/Typography/TypographyProps.ts index 43b21457a..446c0e7c1 100644 --- a/packages/bento-design-system/src/Typography/TypographyProps.ts +++ b/packages/bento-design-system/src/Typography/TypographyProps.ts @@ -1,4 +1,4 @@ -import { Children as Children_ } from "../util/Children"; +import { Children } from "../util/Children"; export type TypographySize = "small" | "medium" | "large"; export type TypographyAlign = "left" | "center" | "right" | "justify"; @@ -19,10 +19,10 @@ export type TypographyColor = export type TypographyProps< Align extends TypographyAlign = TypographyAlign, - Children extends Children_ = Children_, + Elements extends Children = Children, Color extends TypographyColor = TypographyColor > = { - children: Children; + children: Elements; size: TypographySize; color?: Color; align?: Align;