Convert the Strapi models to TypeScript interfaces by processing each of the ./api/**/models/*.settings.json
recursively.
npm install -g strapi-to-typescript
sts path/to/strapi/api/ -o path/to/your/types/dir/
You may define multiple inputs. In case your API models have relations to other plugins like 'users-permissions'.
sts path/to/strapi/api/ path/to/strapi/plugins/users-permissions/models -o path/to/your/types/dir/
npm i
npm run start
The input folder is recursively processed and each model file is read. When done, the expected output folder is generated, and finally, the Strapi models are converted to TypeScript.