UNPKG

@3kles/3kles-corebe

Version:
30 lines (29 loc) 1.32 kB
import * as express from 'express'; import { AbstractGenericApp } from './abstract.generic.app'; import { AbstractGenericRouter, ExtendableError, IHealth } from '../../index'; export declare class GenericApp extends AbstractGenericApp { middleware?: string; health?: IHealth; option?: { limit?: string | number | undefined; extended?: boolean; }; protected router: AbstractGenericRouter; constructor(middleware?: string, health?: IHealth, option?: { limit?: string | number | undefined; extended?: boolean; }); initAppVariable(): void; initModule(): void; initRoute(): void; initHealthCheck(): void; initError(): void; setMainRouter(router: AbstractGenericRouter): void; addRoute(router: express.Router, m?: any): void; getRouter(): AbstractGenericRouter; protected logErrors(err: ExtendableError, req: express.Request, res: express.Response, next: express.NextFunction): void; protected clientErrorHandler(err: ExtendableError, req: express.Request, res: express.Response, next: express.NextFunction): void; protected errorHandler(err: ExtendableError, req: express.Request, res: express.Response, next: express.NextFunction): void; protected print(p: any, layer: any): void; protected split(thing: any): any; }