addQuestionMarks: { [K in requiredKeys<T>]: T[K] } & {
    [K in optionalKeys<T>]?: T[K]
} & { [k in keyof T]?: unknown }

Type Parameters

  • T extends object
  • _O = any