-
Notifications
You must be signed in to change notification settings - Fork 8
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
recursive type conversion error #122
Comments
creduce (first-time using it, pretty amazing) helped me to get this minimal reproducible example: type a = boolean
type b = [ a | b ]|[(b|{})[]][][][]|[{b}][][][][][][][][][][][][][][] It looks like I can get away with a larger stack. It would be nice if I can customize |
Woah! creduce is amazing! I had no idea you could do that I tried a larger typeStackLimit (1000) and it just hung until running out of memory. I think there's an infinite type reference loop it's not breaking out of. I do some loop detection but some cases escape this I've added a debug case 5ad5560 (cd into /test/issue/122 and I think what happens is the typescript compiler is lazily creating new types as we explore, so it doesn't realise it's seeing the same type twice dts2hx/src/ConverterContext.hx Line 967 in f0fdfa2
|
dts2hx failed to process
[email protected]
.Testing with node 16,
output:
The text was updated successfully, but these errors were encountered: