Type Alias CallableFunctionsOf<T>

CallableFunctionsOf<T>: {
    [K in keyof T as T[K] extends CallableFunction & ((this: T, ...args: any) => any)
        ? K
        : never]: T[K]
}

get all functions of a class-instance

Type Parameters

  • T