Improve Your Frontend Experience With Strapi Types And TypeScript

I made a small module that looks at all your files in api and components and by them make a folder with types
Try adding the package to the backend folder
npm i create-strapi-types

And then in the root (in terminal) run the command
npx create-strapi-types frontend

The frontend option creates the folder and types in the
/frontend/src/types/types.ts

This will create all api types and components for you
/backend/types/types.ts

1 Like