type SelectTypes = 'glas' | 'stone' | 'plastic'
<SelectComponent<SelectTypes>
options={['glas','stone','plastic']}
/>
const schema = yup.object({
mySelectValue: yup
.mixed<SelectTypes>()
.oneOf(['glas','stone','plastic'])
)}
view raw type1.ts hosted with ❤ by GitHub