directus-extension-generate-types
directus-extension-generate-types copied to clipboard
Idea: Generate types in filesystem
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.
Or through a CLI (directus-cli or npx), so at each server run, it auto-generates the types, would be great!
There is a cli tool I am using: https://github.com/elierotenberg/directus-typescript-gen