ArgumentDehydrator <T, U>
Constructors
- new ArgumentDehydrator<T, U>(shouldReference: (item: any) => item is T, transformation: (item: T) => U | Promise<U>): ArgumentDehydrator<T, U>
Type parameters
Parameters
externalshouldReference: (item: any) => item is T
externaltransformation: (item: T) => U | Promise<U>
Methods
- dehydrate(inputArgs: any[]): Promise<[{ argsCount: number; refsCount: number }, ...any[]]>
Parameters
Returns Promise<[{ argsCount: number; refsCount: number }, ...any[]]>