Seamless runtime checks are fully supported via zod.
https://github.com/colinhacks/zod
You’re welcome.
(I use this library every day. It has changed my life.)
https://github.com/colinhacks/zod
You’re welcome.
(I use this library every day. It has changed my life.)
https://github.com/ar-nelson/spartan-schema
It does the same thing as Zod, but is much smaller/simpler and its types always have a JSON representation.