Docs
API Reference
Classes
Transformer

Class: Transformer<TContext>

delegate/src.Transformer

Type parameters

NameType
TContextextends Record<string, any> = Record<string, any>

Table of contents

Constructors

Methods

Constructors

constructor

new Transformer<TContext>(context)

Type parameters

NameType
TContextextends Record<string, any> = Record<string, any>

Parameters

NameType
contextDelegationContext<TContext>

Defined in

packages/delegate/src/Transformer.ts:18 (opens in a new tab)

Methods

transformRequest

transformRequest(originalRequest): ExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Parameters

NameType
originalRequestExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Returns

ExecutionRequest<Record<string, any>, any, any, Record<string, any>>

Defined in

packages/delegate/src/Transformer.ts:31 (opens in a new tab)


transformResult

transformResult(originalResult): any

Parameters

NameType
originalResultExecutionResult<any, any>

Returns

any

Defined in

packages/delegate/src/Transformer.ts:51 (opens in a new tab)