-
Notifications
You must be signed in to change notification settings - Fork 328
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
io-ts recursion use issue #686
Comments
What is |
@photz LayoutBase is: interface LayoutBase {
dockbox: BoxBase;
floatbox?: BoxBase;
windowbox?: BoxBase;
maxbox?: BoxBase;
} And LayoutBaseV (which is my re-definition using io-ts): const LayoutBaseV = t.intersection([
t.type({
dockbox: BoxBaseV,
}),
t.partial({
floatbox: BoxBaseV,
windowbox: BoxBaseV,
maxbox: BoxBaseV,
}),
]) |
Am I missing something or is |
Hi, I just tried again in my IDE and there are no warnings anymore for some reason, can I close the issue? |
Hello! I'm trying to use
t.recursion
of the library to document a type, that has recursion. But I've got an error in IDE and can't understand it. Could I ask you for help?The type in the documentation looks like this:
I wrote this:
Then I get an error in IDE:
The text was updated successfully, but these errors were encountered: