directus-extension-generate-types
directus-extension-generate-types copied to clipboard
FEAT: add types for directus default json/csv fields
This PR aims to specify types for the default directus collection fields with json or csv types.
Eventhough I'd love to be able to generate them automatically I couldn't find a reliable way. Therewith I re-build the type definitions of the fields. As those are default fields, they shouldn't change often.
I took the types from the SDK (with some minor changes that hav been noted) and added three required collection-independent types.