Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Document ThisType<T> #649

Closed
mattmccutchen opened this issue Sep 21, 2017 · 1 comment · Fixed by #801
Closed

Document ThisType<T> #649

mattmccutchen opened this issue Sep 21, 2017 · 1 comment · Fixed by #801

Comments

@mattmccutchen
Copy link
Contributor

Document the ThisType<T> marker interface that can be included (via intersection) in the contextual type of an object literal to set the type of this for methods defined in the object literal. It doesn't seem to be documented anywhere but the pull request description.

I'll propose text if I have a chance (not right now).

@mweststrate
Copy link

I love this feature. Deserves some documentation indeed :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants