Skip to content

Commit

Permalink
Fix type parameter circular constraint error
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodim committed Jul 30, 2024
1 parent ed7718c commit 144c09e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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;
Expand Down

0 comments on commit 144c09e

Please sign in to comment.