AutoGenerate Typescript Type and Interface for Content and Component
J
Joep Meindertsma
Strapi's CLI allows for creating typescript definitions, but these are practically unusable in a client context.
https://docs.strapi.io/developer-docs/latest/developer-resources/cli/CLI.html#strapi-ts-generate-types
- 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