Skip to content

@sourceloop/task-service / Exports / IEventAdapter

Interface: IEventAdapter<T, Event, R>

Type parameters

Name Type
T T
Event Event
R Event

Table of contents

Methods

Methods

adaptFrom

adaptFrom(event): Promise<R>

Parameters

Name Type
event Event

Returns

Promise<R>

Defined in

services/task-service/src/interfaces/i-event-adapter.ts:3


adaptTo

adaptTo(event): Promise<Event>

Parameters

Name Type
event T

Returns

Promise<Event>

Defined in

services/task-service/src/interfaces/i-event-adapter.ts:2