title: Declaring string type with min/max length in typescript
body: <p>After going through the docs, it seems there is no direct way to type check for min/max length of a string datatype.</p>
  
  <p>But, is there a way to declare a string datatype using some custom types so that it checks whether the string length is with the given bounds?</p>