bookmark

How to define a regex-matched string type in Typescript? - Stack Overflow


Description

type Digit = MinutePrefix |'6'|'7'|'8'|'9'; type Time = ${HourPrefix | ''}${Digit}:${MinutePrefix}${Digit}

Preview

Tags

Users

  • @jil

Comments and Reviews