Skip to content
TypeScript·Intermediate·Conceptual·1 min read

What happens if you use Partial on a type where every field should always be required for a create operation?

Short interview answer

It would incorrectly allow every field to be omitted, weakening validation for the create case. A separate type — either the full type unmodified, or one derived with only the specific optional fields picked out — better matches that requirement.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Utility types and type vs. interface

Related questions