You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No overload matches this call.
Overload 1 of 2, '(props: PolymorphicComponentProps<"web", FastOmit<Substitute<{ x: "a" | "b"; }, Partial<RequiredFields<Attrs<FastOmit<{ x: "a" | "b"; }, never>>, "as">>>, never>, void, void, {}, {}>): Element', gave the following error.
Property 'x' is missing in type '{}' but required in type 'FastOmit<Substitute<FastOmit<Substitute<{ x: "a" | "b"; }, Partial<RequiredFields<Attrs<FastOmit<{ x: "a" | "b"; }, never>>, "as">>>, never>, FastOmit<...>>, keyof ExecutionProps>'.
Overload 2 of 2, '(props: FastOmit<Substitute<{ x: "a" | "b"; }, Partial<RequiredFields<Attrs<FastOmit<{ x: "a" | "b"; }, never>>, "as">>>, never>): ReactElement<...> | null', gave the following error.
Property 'x' is missing in type '{}' but required in type 'FastOmit<Substitute<{ x: "a" | "b"; }, Partial<RequiredFields<Attrs<FastOmit<{ x: "a" | "b"; }, never>>, "as">>>, never>'.
Steps to reproduce
Create a component with a required union prop, wrap it with styled, and attempt to provide the value with attrs.
Expected Behavior
Required prop should no longer be required on the styled component. (And no additional typecasting should be required.)
Actual Behavior
Typescript error is thrown, saying that the prop is required and not passed in. Must pass as const to have it play nice again (which isn't particularly practical to go through a large codebase and address every instance that way).
The text was updated successfully, but these errors were encountered:
Environment
System:
Binaries:
Reproduction
https://codesandbox.io/p/sandbox/quirky-bhaskara-24skvm
Steps to reproduce
Create a component with a required union prop, wrap it with
styled
, and attempt to provide the value withattrs
.Expected Behavior
Required prop should no longer be required on the styled component. (And no additional typecasting should be required.)
Actual Behavior
Typescript error is thrown, saying that the prop is required and not passed in. Must pass
as const
to have it play nice again (which isn't particularly practical to go through a large codebase and address every instance that way).The text was updated successfully, but these errors were encountered: