Google News
logo
TypeScript - Interview Questions
What is meant by contextual typing?
When one side of the equation has type but the other does not, the TypeScript compiler determines the form. You can skip typing on the right side because TypeScript will figure it out for you. This reduces the amount of time spent typing code.
Advertisement