directus-extension-generate-types icon indicating copy to clipboard operation
directus-extension-generate-types copied to clipboard

Idea: Generate types in filesystem

Open Blechlawine opened this issue 1 year ago • 2 comments

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.

Blechlawine avatar May 02 '23 16:05 Blechlawine

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

DarioLopes avatar Jul 01 '23 16:07 DarioLopes

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

MarvinXu avatar Oct 24 '23 07:10 MarvinXu