CodeZettaInterview Hub

TypeScript · Advanced Types · Senior · Live Coding

Polymorphic this types?

Short Interview Answer

Methods return this for fluent subclass-preserving builders.

Detailed Explanation

Useful in base classes with fluent APIs.

Did you know this answer?