Type alias ExcludeMethods<T>

ExcludeMethods<T>: {
    [K in keyof T as T[K] extends AnyFunction
        ? never
        : K]: T[K]
}

ExcludeMethods Creates a type with all properties of T excluding those which are functions.

Type Parameters

  • T

    The object type to process.

Returns

An object type similar to T but without function properties.

Generated using TypeDoc