import { IRouter } from "./Router" ; export class RoutingEngine { constructor ( private routing = new Array < IRouter > ( ) ) { } public Add < T1 extends IRouter > ( routing , route ) { const routed = new routing ( ) ; routed . AddRoute ( route ) ; this . routing . push ( routed ) ; } }