Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Generate types in filesystem #27

Open
Blechlawine opened this issue May 2, 2023 · 2 comments
Open

Idea: Generate types in filesystem #27

Blechlawine opened this issue May 2, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Blechlawine
Copy link

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.

@maltejur maltejur added the enhancement New feature or request label May 3, 2023
@DarioLopes
Copy link

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

jclaveau added a commit to jclaveau/directus-extension-generate-types that referenced this issue Jul 7, 2023
…es on creat/update/delete of collections, fields or relations

Add a hook saving types in files

List files to save to in an environment va

factorize data gathering between the admin module and the hook

closed maltejur#27
jclaveau added a commit to jclaveau/directus-extension-generate-types that referenced this issue Jul 8, 2023
Also adds a disclaimer to the generated types files

maltejur#27
jclaveau added a commit to jclaveau/directus-extension-generate-types that referenced this issue Jul 8, 2023
Also adds a disclaimer to the generated types files

maltejur#27
@MarvinXu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants