This extension lets you generate typescript types from your Schema, allowing you to more easily develop your custom extensions with type checking.
To install the extension, simply install the package into your project:
npm install directus-extension-modelsor
yarn add directus-extension-modelsThen, run the models snapshot command to export your model to disk: directus models snapshot <taretFile>.
Example:
directus models snapshot ./path/to/target/model.d.tsI am still working on support for the geometry types.
I have not added support for custom types. If you would like your custom type to be supported, create an issue.