Skip to content

web: remove duplicate `as` props in Wildcard

Administrator requested to merge tr/fix-as-issue into main

Created by: umpox

ForwardReferenceComponent already defines as. We duplicate it in some cases which can lead to type errors like:

The expected type comes from property 'as' which is declared here on type 'IntrinsicAttributes & Omit<Pick<DetailedHTMLProps<HTMLAttributes, HTMLDivElement>, "key" | keyof HTMLAttributes> & { ref?: ((instance: HTMLDivElement | null) => void) | RefObject | null | undefined; }, "as"> & CardProps & { as?: "div" | undefined; }'

Merge request reports

Loading