Skip to main content

externalArgumentDehydrator <T, U>

Index

Constructors

Methods

Constructors

externalconstructor

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

    • T
    • U

    Parameters

    • externalshouldReference: (item: any) => item is T
      • externaltransformation: (item: T) => U | Promise<U>

        Returns ArgumentDehydrator<T, U>

      Methods

      publicexternaldehydrate

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

        • externalinputArgs: any[]

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