title: How to define a regex-matched string type in Typescript?
body: <p>Is it possible to define an interface which has some information on the format of a string? Take the following example:</p>
  
  <pre><code>interface timeMarkers{
      markerTime: string[]        
  };
  </code></pre>
  
  <p>an example would be:</p>
  
  <pre><code>{
     markerTime: ["0:00","1:30", "1:48"]                   
  }
  </code></pre>
  
  <p>My question: Is there a way to define the type for <code>markerTime</code> such that that the string value must always match this regex, instead of declaring it as simply <code>string[]</code> and going from there? </p>
  
  <p><code>var reg = /[0-9]?[0-9]:[0-9][0-9]/;</code></p>