Skip to content
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

Per language type overrides #110

Open
oscartbeaumont opened this issue Aug 20, 2023 · 1 comment
Open

Per language type overrides #110

oscartbeaumont opened this issue Aug 20, 2023 · 1 comment
Labels
breaking change This will probs end up in the next major version.

Comments

@oscartbeaumont
Copy link
Member

Allow override the default type = on a per language basis.

struct Demo {
   #[specta(type = Any, ts(type = String))]
   a: String,
}

or, allow a raw string override:

struct Demo {
   #[specta(type = Any, ts(raw = "string"))]
   a: String,
}
@oscartbeaumont oscartbeaumont changed the title Per language overrides Per language type overrides Aug 20, 2023
@oscartbeaumont oscartbeaumont added the breaking change This will probs end up in the next major version. label Aug 20, 2023
@oscartbeaumont
Copy link
Member Author

I am really on the fence about supporting this. For now it's going to stay unimplemented unless someone can provide a compelling usecase. It does provide an escape hatch for Specta bugs but also we just gotta not have bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This will probs end up in the next major version.
Projects
None yet
Development

No branches or pull requests

1 participant