clean-jsdoc-theme TypeDoc APIv0.0.0

DeepPartial

DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]> } : T

Source: common.ts:100

Deep partial - makes all nested properties optional

Type Parameters

  • T — The base type

Example

CODE
interface Config {
  server: {
    host: string
    port: number
  }
  features: {
    enabled: boolean
  }
}

type PartialConfig = DeepPartial<Config>
// All nested properties are optional