UNPKG

trade360-nodejs-sdk

Version:

LSports Trade360 SDK for Node.js

13 lines (12 loc) 492 B
import { BaseEntity } from '../entities/core-entities/index.js'; import { IMessageStructure } from './mq-feed'; /** * Interface that represent every entity handler * required implementation for the feed service * to handle the entity type with the entityHandler * call-back function for the entityConstructor class * type entity type */ export interface IEntityHandler<TEntity extends BaseEntity> { processAsync: ({ header, entity }: IMessageStructure<TEntity>) => Promise<void>; }