Hi all - quick question about Prisma types and typescript.
Getting an error as I'm trying to type the Prisma response object with props as a number, but I get Prisma.Decimal | null is not compatible with number? What can I type this to?
r
Ryan
07/05/2021, 5:33 AM
@Moh đź‘‹
It seems that you’re using
Float
. In this case the type would be exactly what’s specified by Prisma i.e.