keajs / kea-typegen

6 stars 5 forks source link

patch(typegen): stops `defaultMaximumTruncationLength` getter error #47

Closed Tbhesswebber closed 11 months ago

Tbhesswebber commented 12 months ago

This PR prevents the error mentioned in #44 from occurring for TypeScript versions >= 5. I don't know that it's actually solving the underlying problem that modifying defaultMaximumTruncationLength was attempting to solve in the latest versions. According to this long-standing issue, it sounds like there hasn't ever been a way to actually modify this value, although that could just be referring to the public configuration options.

I'm more than happy to modify this, but it feels like patching the functionality is likely the most valuable path to move forward quickly rather than trying to identify the "right" way to do this.

Closes #44