Feb 28, 2021
Great post, thanks for sharing. I’ve been in a similar situation but in the end, I’ve chosen a validation library or some runtime type validation like io-ts to do the checking for me.
Have you considered that as well and if so, what’s your opinion?