Source
OCP App SDK / Source
Interface: Source
Defined in: src/sources/Source.ts:18
Interface to interact with sources
Methods
emit()
emit<
T>(data):Promise<SourceResponse>
Defined in: src/sources/Source.ts:26
Emit data to be processed and send to the destination.
Type Parameters
T
T extends object
Parameters
data
SourceData<T>
SourceData the data to be emitted
Returns
Promise<SourceResponse>
A SourceResponse with success/failure and optional message in case
of failure.
Updated about 2 months ago