Skip to content

Conversation

flying-sheep
Copy link
Owner

TODO: only use innermost tag:

cargo run -- --schema | npx --package=json-schema-to-typescript json2ts --additionalProperties=false | save -f target/schema.d.ts

currently creates

export type StructuralSubElement = Title | Subtitle | Decoration | Docinfo | SubStructure;
export type SubStructure = {  type: "SubStructure" } & ( | BodyElement);
export type BodyElement = { type: "BodyElement" } & ();

which makes no sense

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