claus / storyblok-rich-text-react-renderer

A React renderer for Storyblok rich text content
MIT License
86 stars 16 forks source link

Typescript Support #4

Closed lisilinhart closed 2 years ago

lisilinhart commented 3 years ago

Hi, I was implementing a storyblok example with https://github.com/vercel/commerce trying to use this package instead of the Storyblok renderer, but then I noticed that the rendered didn't have the Typescript types defined. Would there be a possibility from your side to add them? Maybe some of the types from the Storyblok JS client can be useful: https://github.com/storyblok/storyblok-js-client/blob/master/types/index.d.ts

dohomi commented 3 years ago

@claus @lisilinhart I started a PR here: https://github.com/claus/storyblok-rich-text-react-renderer/pull/5

Let me know what you think about it.

dohomi commented 3 years ago

To try out the rewritten project here is a temporary project-name:

 "storyblok-rich-text-react-renderer-beta": "^3.0.0-pre3",