Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

regexp in typescript types

type MarkerTime =`${number| ''}${number}:${number}${number}`

let a: MarkerTime = "0-00" // error
let b: MarkerTime = "0:00" // ok
let c: MarkerTime = "09:00" // ok
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regexp #typescript #types
ADD COMMENT
Topic
Name
4+8 =