type alias O.Optionalimport { type O } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts"; const { Optional } = O; Make some fields of O optional (deeply or not) ExamplesExample 1 Type ParametersO extends objectoptionalK extends Key = Keyoptionaldepth extends Depth = "flat"definition: { 1: OptionalPart<O, depth>; 0: PatchFlat<OptionalPart<Pick<O, K>, depth>, O>; }[Equals<Key, K>]