Im trying to extend MoneyAmountRepository with the following code:
MoneyAmount,
ProductVariant,
ProductVariantMoneyAmount,
} from "@medusajs/medusa";
import { dataSource } from "@medusajs/medusa/dist/loaders/database";
import { MoneyAmountRepository as MedusaMoneyAmountRepository } from "@medusajs/medusa/dist/repositories/money-amount";
import { groupBy } from "lodash";
import { Brackets } from "typeorm";
export const MoneyAmountRepository = dataSource
.getRepository(MoneyAmount)
.extend(
Object.assign(MedusaMoneyAmountRepository, {
customFunction(): void {
console.log("test");
},
})
);
export default MoneyAmountRepository;```
When im trying to build i get the following error:
`Exported variable 'MoneyAmountRepository' has or is using name '_QueryDeepPartialEntity' from external module "(path)/node_modules/typeorm/query-builder/QueryPartialEntity" but cannot be named`
I've not extended the MoneyAmount model. Any ideas how i could fix it?
I've tried importing `QueryDeepPartialEntity` but it did not help