title: What is TypeScript's ThisType used for?
body: <p>TypeScript comes with an interface <a href="https://github.com/microsoft/TypeScript/blob/76401adba33b71e70d76961d7d66064243be0243/lib/lib.es5.d.ts#L1629-L1632" rel="nofollow noreferrer"><code>ThisType</code></a>. I couldn't find much documentation on it, so I'm wondering: what is it used for? How do I use it? How does it work?</p>