Open t-pyrope opened 1 year ago
What is LayoutBase
?
@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 LayoutBase
not actually being used in the code you are showing us?
Could you create a minimal self-contained runnable example?
When posting an issue, the easier you make it for others to reproduce the problem, the more likely you are to be helped.
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: