Skip to content
GitHub

DeepPartial

type alias in meocord/interface Since 4.1.0

type DeepPartial<T> = T extends ThemeLeaf
  ? T
  : { [K in keyof T]?: DeepPartial<T[K]> }

T with every property optional, at every depth; arrays and tuples stay whole.

It is the shape of a theme an app, a server or a user gives: only the tokens that change.

See also