TypeScript Professional — Hard
Key points
- `ThisType` provides contextual typing for `this` in object literals
- It is used in conjunction with `noImplicitThis` compiler option
- Helps prevent errors related to incorrect `this` typing
- Ensures type safety when working with `this` in object literals
Ready to go further?
Related questions
