Closed bitmap closed 3 years ago
https://github.com/prismicio/prismic-reactjs/issues/68
Thanks @bitmap π
Would be awesome to have these merged.
π Sorry for the last minute update, I found a few missing properties, namely for media links. I didn't know there was a linkTo
prop on image blocks as well.
Thanks for making these changes! This should be addressed by the product team next week~ βΊοΈ
Thank you for looking into it!
Is there a way to "patch" incorrect types in cases like this? I am stuck with my vercel build failing with Type error: Type '(doc: any) => string' is not assignable to type '() => string'.
because of the linkResolver?: () => string;
prop of the RitchText component
Hi, it seems that the last release which incluses this fix has failed
Any idea when it will be available ?
Hey @YoannDelpierre, what do you mean?
Last release will be published soon if that's what you're wondering π
@lihbr ah yes sorry, I saw that the build is failing on master, good to know if the release is soon published π
Yes I saw your issue @Levino
@lihbr Can you deploy the 1.3.3 π ?
@YoannDelpierre Thanks for picking this up. I guess your comment should be in #73 so @lihbr gets a little bit more context.
Also, have you seen #74? Maintaining the types here is a bad idea. I am happy to elaborate in #74...
I ran into a few odd errors while trying to write an HTML serializer using these typings. Namely:
RichTextSpan
's type property not accepting "em," which I think is validlinkResolver
prop not expecting any argumentstype
argument not corresponding with with RichTextBlock'stype
I also made
text
andspans
optional onRichTextBlock
, because it can be anElements.image
type in some cases, and these have props likeurl
,dimensions
,alt
, andcopyright
.Let me know if I missed anything, I haven't tested every single rich text type yet.
Thanks for putting TypeScript typings in the repo. Much appreciated.