Comment
Comment by thomasrognon
You need
in your tsconfig.json. For odd only numbers, you can make a "branded" type. There are many options, one way is
then it's just
and to onboard untrusted data, use a type guard
Be the first to share your thoughts.