4 ms·
You can accomplish it with a library like zod[1]. It's not the prettiest though; first class support would definitely be better. 1 - https://github.com/colinha
by danenania 5y ago
You can accomplish it with a library like zod[1]. It's not the prettiest though; first class support would definitely be better.
1 - https://github.com/colinhacks/zod https://github.com/colinhacks/zod