We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling t.brandCombinator on a recursive feild results in something like this:
t.brandCombinator
const Schema: t.RecursiveType<t.Type<Schema>> = t.recursion('Schema', () => t.brand(_Schema, (x): x is t.Branded<_Schema, XPropertiesBrand> => true, 'XProperties') interface XPropertiesBrand { readonly XProperties: unique symbol })
The interface is placed within the recurisve expression.
That happens because of this line:
io-ts-codegen/src/index.ts
Line 788 in 0be1884
One idea for a fix: another function instead of printRuntime (ie printDefinitions) could be used to print this sort of thing.
printRuntime
printDefinitions
The text was updated successfully, but these errors were encountered:
Calling t.brandCombinator on a recursive feild
@mikesol could you please post a small repro?
Sorry, something went wrong.
No branches or pull requests
Calling
t.brandCombinator
on a recursive feild results in something like this:The interface is placed within the recurisve expression.
That happens because of this line:
io-ts-codegen/src/index.ts
Line 788 in 0be1884
One idea for a fix: another function instead of
printRuntime
(ieprintDefinitions
) could be used to print this sort of thing.The text was updated successfully, but these errors were encountered: