Variables
Const Router
Router
: RouterConstructor = function (options: any = {}): any {function router(req: OpineRequest,res: OpineResponse,next: NextFunction,): void {(router as any).handle(req, res, next);}setPrototypeOf(router, Router);router.params = {};router._params = [] as any[];router.caseSensitive = options.caseSensitive;router.mergeParams = options.mergeParams;router.strict = options.strict;router.stack = [] as any[];return router as IRouter;} as any
Const objectRegExp
objectRegExp: RegExp = /^\[object (\S+)\]$/
Const setPrototypeOf
setPrototypeOf: any = Object.setPrototypeOf
Initialize a new
Router
with the givenoptions
.which is an callable function