Hi, I wanted to get a TSType out of Badge.d.ts mui component. I've looked at how it is done in purescript-react-mui.
When I call readInterfaceTypes on config that includes only Badge.d.ts I get an error:
RangeError: Maximum call stack size exceeded
...
It looks like there is an infinite recursion between getTSType and getWithAliasProps.
When I restricted the function argument for readInterfaceTypes so that it returns true only for "BadgeProps" and removed some fields (children, badgeContent, component) it terminated without the error.
I've added simple recursive type as an additional field in the interface and Maximum call stack size exceeded again
Am I doing something wrong?
Just for the record, I've cloned the purescript-react-mui installed it and built, but running the /synctypes caused the same error 😞
Hi, I wanted to get a
TSTypeout ofBadge.d.tsmui component. I've looked at how it is done in purescript-react-mui.When I call
readInterfaceTypeson config that includes onlyBadge.d.tsI get an error:It looks like there is an infinite recursion between
getTSTypeandgetWithAliasProps.When I restricted the function argument for
readInterfaceTypesso that it returnstrueonly for "BadgeProps" and removed some fields (children,badgeContent,component) it terminated without the error.I've added simple recursive type as an additional field in the interface and
Maximum call stack size exceededagainAm I doing something wrong?
Just for the record, I've cloned the purescript-react-mui installed it and built, but running the
/synctypescaused the same error 😞