Type Alias OptionalProps<T>

OptionalProps<T>: T extends unknown
    ? {
        [k in OptionalKeys<T>]?: T[k]
    }
    : never

Parse T to keep only the optional properties.

Type Parameters