samchon / bbs-backend

Simple Bullet-in Board System Backend
https://nestia.io
MIT License
24 stars 3 forks source link

Use `satisfies` keyword instead of Prisma.validator #1

Closed Switch1220 closed 10 months ago

Switch1220 commented 10 months ago

This pull request introduces the utilization of the satisfies operator in place of Prisma.validator.

The satisfies operator provides the same benefits with no runtime impact and provides the same functionality just as Prisma.validator.

see: https://www.prisma.io/blog/satisfies-operator-ur8ys8ccq7zb

Switch1220 commented 10 months ago

fyi: prettier 2.6.2 doesn't seem to work with satisfies, so that's the reason for bumping up the version

Switch1220 commented 10 months ago

fixed. forgot to sync the commit