Skip to main content

ArgumentDehydrator <T, U>

Index

Constructors

Methods

Constructors

constructor

  • new ArgumentDehydrator<T, U>(shouldReference: (item: any) => item is T, transformation: (item: T) => U | Promise<U>): ArgumentDehydrator<T, U>
  • Type parameters

    • T
    • U

    Parameters

    • shouldReference: (item: any) => item is T
    • transformation: (item: T) => U | Promise<U>

    Returns ArgumentDehydrator<T, U>

Methods

publicdehydrate

  • dehydrate(inputArgs: any[]): Promise<[{ argsCount: number; refsCount: number }, ...any[]]>
  • Parameters

    • inputArgs: any[]

    Returns Promise<[{ argsCount: number; refsCount: number }, ...any[]]>