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

FEAT: add types for directus default json/csv fields

Open Dominic-Marcelino opened this issue 1 year ago • 0 comments

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.

Dominic-Marcelino avatar Sep 29 '23 14:09 Dominic-Marcelino