0.2.1 • Published 5 years ago

strapi-to-typescript-2 v0.2.1

Weekly downloads
88
License
MIT
Repository
github
Last release
5 years ago

Strapi-to-TypeScript

Convert the Strapi models to TypeScript interfaces by processing each of the ./api/**/models/*.settings.json recursively.

Install and Run

npm install -g strapi-to-typescript
sts path/to/strapi/api/ -o path/to/your/types/dir/

Build

npm i
npm run start

Explanation

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.