Q31.

What is infer keyword?

Q32.

What is namespace in TypeScript?

Q33.

Explain type narrowing.

Q34.

What is discriminated union?

Q35.

What is function overloading in TypeScript?

Q36.

What is readonly array?

Q37.

What is index signature?

Q38.

What is keyof typeof pattern?

Q39.

What is type compatibility?

Q40.

How does TypeScript support OOP?