maltejur / directus-extension-generate-types

Create types for your directus project in your favourite language.
Other
199 stars 24 forks source link

Idea: Generate types in filesystem #27

Open Blechlawine opened 1 year ago

Blechlawine commented 1 year ago

It would be great if this extension could save the generated types on disk, so when running an instance locally for development the types could be directly imported into the code, then they wouldn't have to be downloaded first. Ideally the generated types would update whenever any data model changes.

DarioLopes commented 1 year ago

Or through a CLI (directus-cli or npx), so at each server run, it auto-generates the types, would be great!

MarvinXu commented 11 months ago

There is a cli tool I am using: https://github.com/elierotenberg/directus-typescript-gen