title: Typescript add static metadata to a class and read at runtime
body: <p>Can someone please show me how I can create a custom decorator in Typescript that appends static metadata to the type which I can read at runtime (without instantiating an instance of the class) in the same way the <code>__annotations__</code> works in Angular.</p>
  <p>Update - see image below. How can I create my own decorator factory on the type? I can find plenty of examples where decorators add data to the constructed instance but not the actual type.</p>
  <p><a href="https://i.stack.imgur.com/odTbI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/odTbI.png" alt="enter image description here" /></a></p>