With entities that refer to eachother, e.g. an entity A that contains a ref to entity B and vice versa, the types may very well break since TypeScript 5.9 reverted some optimizations in the caching of types. See this PR for an explanation: microsoft/TypeScript#61668 (review)'
For now we should probably specify TS 5.8 as an upperbound peer dependency, and see if we can implement a test and a fix for the circular types on versions higher than that.