AutoGenerate Typescript Type and Interface for Content and Component
Strapi's CLI allows for creating typescript definitions, but these are practically unusable in a client context.
- They include all sorts of fields that are no in responses (e.g infoandoptions
- The attributes are not atomic types like string, butStringAttribute, which throw type errors if you try to render them
- Some fields are missing (e.g. id) that are included in API responses