Skip to content
Discussion options

You must be logged in to vote

It sounds like you have an interface that extended HTMLAttributes but also declared RDFa props. That declaration is not compatible with the RDFa prop.

The solution is to omit that prop e.g.

-interface TooltipProps extendsHTMLAttributes {
+interface TooltipProps extends Omit<HTMLAttributes, 'content'> {
   content?: Element | Element[] | string | undefined
 }

These are the sort of breaking changes we and any other type declaration has to make occasionally. Otherwise every change would need to be a SemVer major because type changes are generally backwards incompatible.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Hotell
Comment options

@eps1lon
Comment options

eps1lon Apr 9, 2023
Collaborator

Answer selected by Hotell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pkg: react Discussions related to react
3 participants