RequiredNonNull<T, K>: Omit<T, K> & {
    [P in K]-?: NonNullable<T[P]>
}

Utility type, that maps all given properties to required non-null properties. Defaults to all properties of the given type.

Type Parameters

  • T
  • K extends keyof T = keyof T