Hi, I'm totally stuck, it's a TypeScript thing, bu...
# orm-help
r
Hi, I'm totally stuck, it's a TypeScript thing, but maybe someone can help me. I'm trying to do this
type FullBattery = Prisma.PromiseReturnType<typeof batteryRepository.getFullBatteryById>;
Problem is my batteryRepository takes PrismaClient and returns a map of functions as a good repo should. So I don't know how to get the dang getFullBatteryById function out so I can do the typeof on it.