Prismic Rest API Type Generation

Hi everyone! :wave:

Very much a WIP, but I have written a little tool that generates typings from the custom types API.

I have been using Prismic for a while now, mainly with Gatsby where I can use graphql codegen for type safety. Recently I have been loving using NextJS and the Prismic REST API (@prismico/client), but having to manually type everything can be tedious.

Hopefully it can come in handy for any typescript devs!


Hi @bennlongg ! Seems promising though! I'd love to see also a generator for Slices! And to be honest, Prismic should provide these also! (By default generating them with Slicemachine)

Keep up the good work.