2 points · by wyattjoh · 2y ago · 0 comments
No comments yet.
Don
Optional properties in TypeScript can silently omit critical values. Using explicit `T | undefined` instead forces callers to acknowledge the absence of a parameter, preventing subtle bugs in larger codebases.
Wyatt Johnson