Hello,
i'm using an example from the docs here in my project I get a Typescript error on the VisuallyHidden component. I think there maybe an issue with the type definition.
Type '{ type: string; as: "input"; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<any> & HTMLAttributes<any> & LayoutProps & ColorProps & SpaceProps<ReactText> & BordersProps & BackgroundProps<ReactText> & ... 14 more ... & { ...; }'.
Property 'type' does not exist on type 'IntrinsicAttributes & RefAttributes<any> & HTMLAttributes<any> & LayoutProps & ColorProps & SpaceProps<ReactText> & BordersProps & BackgroundProps<ReactText> & ... 14 more ... & { ...; }'.ts(232
created a codepen example here - https://codesandbox.io/s/chakra-ts-starter-ii7wc
Hi @ChrisLusted,
Yes, it's an issue with the type definition. We're currently migrating the codebase to TS. Once we release it, this issue will be resolved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.Thank you for your contributions.
is there a solution in the meantime, before the code is migrated to TS?
Most helpful comment
is there a solution in the meantime, before the code is migrated to TS?