Using yup and typescript for typesafe select validation

The type 'readonly ["glas", "stone", "plastic"]' is 'readonly' and cannot be assigned to the mutable type any[]

--

--

--

Software developer, language enthusiast and Jazz musician.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Hi companies planning on choosing React without thinking more of it. Look here!

Performance Improvements in an eCommerce Storefront: The Power of Lazy loading

Web based Telepresence with ROS Pt. 1

Introduction to React JS

An introduction to Slots and Scoped Slots

ReactJS : Complete guide to building product tours on your React apps

JavaScript Callback

Include css and js file using node,express and ejs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Voigt

Daniel Voigt

Software developer, language enthusiast and Jazz musician.

More from Medium

Rich Enums in Typescript?

Testing a HTTP Error Handler Utility Hook

TypeScript Solutions: Converting Object Props With Undefined Type to Optional Props

Generics in typescript