expressmultithread
Version:
Fast, light-weight and low dependency [Express.js](https://www.npmjs.com/package/express) multithreaded router.
12 lines (11 loc) • 461 B
TypeScript
import { Router as ExpressRouter } from 'express';
import { Serializable } from '../types';
export declare class MultithreadedRouter {
protected _router: ExpressRouter;
importControllers(path?: string | string[]): void;
use(path: string, ...args: Serializable[]): void;
unuse(path?: string, ...args: Serializable[]): void;
get router(): ExpressRouter;
}
export declare const Multithreaded: MultithreadedRouter;
export default Multithreaded;