Photo by Chris Ried on Unsplash I needed to dynamically create yup validations in TypeScript, which are accomplished by method chaining. I only needed to chain .required in the case that requiredBool was true, as below: const x = number() .typeError...
tachiboku.hashnode.dev1 min read
No responses yet.