Skip to content

Conversation

@Thechi2000
Copy link
Contributor

Add a custom script to generate the Typescript schema. It uses openapi-typescript to generate the types. Before running the generation, it tweaks the OpenAPI schema such that the relational fields are expressed as Item[] | number[] | null instead of (Item | number)[] | null, improving how the directus sdk reads the schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant