chrishoermann / zod-prisma-types

Generator creates zod types for your prisma models with advanced validation
Other
626 stars 47 forks source link

Use Prisma Decimal to check for decimal type #29

Closed chrishoermann closed 1 year ago

chrishoermann commented 1 year ago

Maybe it is better to use Prisma.Decimal.isDecimal(obj) to check if a type is a decimal instead of having to import the decimal.js library

chrishoermann commented 1 year ago

now it is possible to select if decimal.js or Prisma.Decimal is used to validate a decimal. Under the hood it should be the same but why not make it possible