Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / TypeScript

Partial<Type>

Constructs a type with all properties of Type set to optional.

Syntax
type Partial<T> = { [P in keyof T]?: T[P]; }

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working Partial<Type> usage example
// Example for Partial<Type>
// Standard verified syntax construct
console.log('Partial<Type> initialized');
Standard TypeScript language feature verified across modern versions.