Generate interface for Blocks (and Models?)

It would be great that eg. the Blocks editing screen would allow copying the interface for developers.

That is, the current Edit block, Duplicate, Delete could include a “Copy interface” menu item, or maybe having this feature inside the Edit block modal. This way developers could just copy and use in their code. DatoCMS knows everything to put it together - field names and types too. This would be probably handy for Models too.

I’m interested in a TypeScript interface but there could be interfaces/classes for other languages too.

You can currently use this for it . It’ll generate the types based on your named queries, and put them in the Queries namescape.