Skip to content

Move schema type definitions out to own types #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tantaman opened this issue Aug 19, 2023 · 1 comment
Closed

Move schema type definitions out to own types #41

tantaman opened this issue Aug 19, 2023 · 1 comment

Comments

@tantaman
Copy link
Contributor

tantaman commented Aug 19, 2023

Defining types like:

Screenshot 2023-08-19 at 6 32 47 AM

Then referencing them like:

Screenshot 2023-08-19 at 6 33 08 AM

Causes crappy (unreadable!) errors and mouse-overs:

Screenshot 2023-08-19 at 6 32 03 AM

See related typescript issue: microsoft/TypeScript#31940

@tantaman
Copy link
Contributor Author

This can now be accomplished with the --schemaTyping=parallel option.

Nit: rename to --schemaTyping=sibling?

https://github.com/tantaman/strut/pull/425/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R11

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

No branches or pull requests

1 participant