title: how to create custom datatype in typescript?
body: <p>I have a object like below</p>
  
  <pre><code>export const appErrorTemplate = {
      NO_APP : {
          template : 'Unable to initialize #{0}()!',
          code : 'no-app'
      },
      NO_REQ_FOUND : {
          template : '#{0}() requires \'#{1}\' to process!',
          code : 'no-required-found'
      },
      MISMATH : {
          template : '#{0}() required #{1} but \'#{2}\' found!',
          code : 'mismatch'
      },
      NOT_SATISFY : {
          template : 'Given parameter on #{0}() does not satisfied #{1} constrains',
          code : 'not-satisfy'
      },
      UNKNOWN : {
          template : 'Something went wrong!',
          code : 'unknown'
      }
  };
  </code></pre>
  
  <p>How to define datatype like object which has array of object on that each object will be string,string</p>