Closed
Description
Add Regex String Types
⭐ Suggestion
I'd like to see Regex types be added into typescript. This would allow us to create types for specific necessary strings. I feel like adding template literal types was a step in the right direction, but this would be even better.
📃 Example
type AllUppercase = /^[A-Z]+$/;
let myLowercaseVariable: AllUppercase = "test"; // error
let myUppercaseVariable: AllUppercase = "TEST"; // works