DeepRequired<T>: {
    [TKey in keyof Required<T>]: NonNullable<Required<T>[TKey]>
}

Converts a mapping type to be non-optional.

type T = DeepRequired<{optionalKey?: string, nullableValue: string | null, undefinableValue: string | undefined}>
T = {optionalKey: string, nullableValue: string, undefinableValue: string}

Type Parameters

  • T