Type the boundaries
Props, API responses, and public functions deserve types. Deep internal inference can stay quiet.
Unions over booleans
status: "idle" | "loading" | "error" | "success" beats four booleans that can disagree.
Escape hatches
unknown + narrowing beats any. If you cast, leave a comment why — casts hide bugs.
#typescript#react