UNPKG

sdg

Version:

pomelo ts

10 lines (9 loc) 494 B
import { IHandlerServiceOptions } from './IHandlerService'; import { IHandlerMsg } from './IConnector'; import { IFrontendOrBackendSession } from './ISession'; import { ICronConfigs } from './ICron'; export interface IServerOptions extends IHandlerServiceOptions { cronConfigs?: ICronConfigs; } export declare type RspErrorType = Error | number; export declare type IResponseErrorHandler = (err: RspErrorType, msg: IHandlerMsg, session: IFrontendOrBackendSession) => Promise<RspErrorType>;