@yantrix/providers v0.6.0 • Docs
Yantrix API / @yantrix/providers / THTTPRequestAdapterProps
Type Alias: THTTPRequestAdapterProps<EventType, EventMetaType> ​
ts
type THTTPRequestAdapterProps<EventType, EventMetaType>: object;Type Parameters ​
• EventType extends TAutomataBaseEventType
• EventMetaType extends Record<EventType, any>
Type declaration ​
id? ​
ts
optional id: string;An optional id for the Data Source and Data Destination.
routes ​
ts
routes: Partial<{ [K in EventType]: [Function, Function] }>;An object with Event names as keys and an array with the request options and the response mapper as values.