I have created a package introduces type-safe repository type for TypeORM. Its find** functions return only the actually joined relations by checking relations option.
You can easily use just with annotation and type-casting.
Show HN: TypeORM-Strict-Type – safer typing for TypeORM repository | Heykuki News