ts error in library file - Prisma