You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like it just skips b because it has no explicit type. However, this is valid typescript. It is not even allowed to add types here if you use the recommended config of typescript-eslint. I don't think it's possible to get the type directly from the AST. Maybe it is possible to implement something similar to the eslint rule no-inferrable-types in this project.
The text was updated successfully, but these errors were encountered:
I have the following typescript code:
ts-json-schema-generator generates the following schema:
It seems like it just skips
b
because it has no explicit type. However, this is valid typescript. It is not even allowed to add types here if you use the recommended config of typescript-eslint. I don't think it's possible to get the type directly from the AST. Maybe it is possible to implement something similar to the eslint rule no-inferrable-types in this project.The text was updated successfully, but these errors were encountered: