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

Returns an object type with specific properties rendered required and non-nullable.

Type Parameters

  • T

    The object type to modify.

  • K extends keyof T

    Union of keys of T to render required and non-nullable.