Type Alias AdjustExactOptionalProps<T>

AdjustExactOptionalProps<T>: T extends object
    ? {
        [K in OptionalKeys<T>]?: T[K]
    } & {
        [K in RequiredKeys<T>]: T[K]
    }
    : never

⚗️ transform

Adjust T to work with compiler flag exactOptionalPropertyTypes.

It adds undefined to optional properties.

Type Parameters