[@types/react] version 17.0.56 introduced breaking change
#64999
-
|
See original issue to learn more microsoft/fluentui#27425 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Thanks for the discussion about "react", some useful links for everyone: Pinging the DT module owners: @johnnyreilly, @bbenezech, @pzavolinsky, @ericanderson, @DovydasNavickas, @theruther4d, @guilhermehubner, @ferdaber, @jrakotoharisoa, @pascaloliv, @Hotell, @franklixuefei, @Jessidhia, @saranshkataria, @lukyth, @eps1lon, @zieka, @dancerphil, @dimitropoulos, @disjukr, @vhfmag, @hellatan, @priyanshurav, @Semigradsky. |
Beta Was this translation helpful? Give feedback.
-
|
Could you trim this down to just using |
Beta Was this translation helpful? Give feedback.
-
|
It sounds like you have an interface that extended 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. |
Beta Was this translation helpful? Give feedback.
It sounds like you have an interface that extended
HTMLAttributesbut also declared RDFa props. That declaration is not compatible with the RDFa prop.The solution is to omit that prop e.g.
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.