WithoutFn<T>: { [ K in keyof T]: T[K] extends ((arg: any, ...args: any[]) => any) ? ((...args: Parameters<T[K]>) => ReturnType<T[K]>) : T[K] }

Transform an object type T with methods that have function-type parameters to a new object type with the same methods, but with the parameters extracted as separate properties.

Type Parameters

  • T

Generated using TypeDoc