-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fails with type unions #39
Comments
I am also having the same issue. Additionally, if I use annotations to assign the type the Validator file out puts an extra set of quotes outside the brackets. export interface Foo {
/**
* @TJS-type ['array', 'null']
*/
foo?: Array<string> | null
} Validation output: foo: {
type: "['array', 'null']"
}, |
This seems like a dealbreaker... |
@Jewcub I guess you can do that. I decided not to use this tool because of the basic functionality it offers. |
Interface
fails the validation by saying
Error: Foo.id should be number
Validator file
The text was updated successfully, but these errors were encountered: