Source
5 min
OCP App SDKOCP App SDK
OCP App SDKOCP App SDK / Source
Interface: Source
Defined in: src/sources/Source.ts:18
Interface to interact with sources
Methods
emit()
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`SourceData<T>
SourceData the data to be emitted
Returns
Promise<`SourceResponse`SourceResponse>
A SourceResponse with success/failure and optional message in case of failure.