Type alias OmitObjectFunctions<T>

OmitObjectFunctions<T>: T extends Date
    ? T
    : T extends object
        ? T extends (infer U)[]
            ? OmitObjectFunctions<U>[]
            : T extends AnyFunction
                ? never
                : {
                    [K in NonFunctionPropertyNames<T>]: OmitObjectFunctions<T[K]>
                }
        : T

OmitObjectFunctions Creates a type by omitting functions from an object type T recursively.

Type Parameters

  • T

    The object type to process.

Returns

An object type similar to T but without function properties.

Generated using TypeDoc