-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Labels
enhancement
New feature or request
Comments
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
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
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.
The text was updated successfully, but these errors were encountered: