sdg
Version:
pomelo ts
11 lines (10 loc) • 354 B
TypeScript
/**
* 服务器生命周期
*/
import Application from '../application';
export interface ILifeCycle {
beforeStartup?: (app: Application) => void;
afterStartup?: (app: Application) => void;
afterStartAll?: (app: Application) => void;
beforeShutdown?: (app: Application, shutDown: () => void, cancelShutDownTimer: () => void) => void;
}