import { IMidwayApplication , IMidwayContext , NextFunction as BaseNextFunction } from '@midwayjs/core' ; import * as Bull from 'bull' ; export interface IQueue { execute ( data , job ) : Promise < void > ; } export interface Application extends IMidwayApplication < Context > { } export type NextFunction = BaseNextFunction ; export interface Context extends IMidwayContext { taskInfo : { type : string ; id : string ; trigger : string ; } ; }