strapi-to-typescript-2

0.2.1 • Public • Published

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.

Package Sidebar

Install

npm i strapi-to-typescript-2

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

36.7 kB

Total Files

16

Last publish

Collaborators

  • saudalhilali