In React I can restrict a variable to subset of values, like PropTypes.oneOf(['Home', 'About']),. How do I do that in TypeScript?
確定! 回上一頁