Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/styled-theming/styled-theming-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Button = styled.button`

const elementWithoutProp = React.createElement(Button);
const elementWithCorrectProp = React.createElement(Button, { kind: "secondary" });
// TODO(react): Unclear why this doesn't error. Probably picking an overload where excess props are fine.
// @ts-expect-error >=5.6
const element = React.createElement(Button, { kind: "wrong variant" });
// @ts-expect-error
<Button kind="wrong variant" />;