[PRISMA] Adding method with param in result object

Hi, I have seen the documentation about adding method to the result object. I would like to add a method with parameter, NOT static method in result object. Is that possible?

https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions/result#add-a-custom-method-to-the-result-object

const user = await prisma.user.findUniqueOrThrow({ where: { id: someId } })
user.generateDiscount(discountPercent)
Was this page helpful?