Closed FredTreg closed 3 months ago
I can replicate this using a custom check containing property access (for example, $self.length
). I just got a fix and'll release the patch tomorrow, but just in case - It'd be nice if you could remove any uses of checks that access properties (so all length checks) from your codebase and try to compile to see if it works.
I confirm it is working on some basic chunks of code but I am using MinLen
and MaxLen
massively (which are using Check<$self.length...
) and I can't isolate these easily.
So fingers crossed for now, hoping that what you detected will solve the issue.
Describe the bug When using TypeScript 5.5.3, compiling with ts-runtime-checks fails with the following error on my project:
This works correctly with TypeScript 5.4.5
I have not yet tried to isolate the problem in case the bug is obvious to the ts-runtime-checks contributor. If more investigation/isolation is needed, please let me know.
Additional context