stack

Home > @infiniteobjects/type-utils > OptionalPropertyOf

OptionalPropertyOf type

Returns a type with all the optional properties of T

Signature:

export type OptionalPropertyOf<T> = Exclude<{
    [K in keyof T]: T extends Record<K, T[K]> ? never : K;
}[keyof T], undefined>;