Skip to main content
Version: 1.1.0

PartialDeep

@spartanfx/react v1.1.0


@spartanfx/react / index / PartialDeep

Type Alias: PartialDeep<T>

type PartialDeep<T> = { [K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K] };

Recursive Partial for the nested token tree. Primitive leaves (string / number) pass through untouched; nested objects become optional all the way down — so a consumer can override a single token without restating the rest.

Type Parameters

T

T