CodeZettaInterview Hub

TypeScript · Utility Types · Mid-Level · Concept

Required and Readonly?

Short Interview Answer

Required removes optionality; Readonly makes props readonly.

Detailed Explanation

Shallow. Useful for freezing config types and completing option bags.

Did you know this answer?