import { IChoreography } from './choreography.interface'; import { Model } from 'mongoose'; export interface ISaga { sagaId: string; choreography: IChoreography; status: string; data: any; created_at: Date; start: () => Promise; next: (fn: Function) => Promise; } export interface SagaModel extends Model { paginate(filter: object, options: object): any; }