Skip to content

Commit

Permalink
add type ParentRoute for support of old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Nov 28, 2023
1 parent 7c88679 commit fc786d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/run_benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const runCommand = function (cmd, finishMessage) {

const apps = [
{
command: `cd fort && npm run start:prod & sleep 10`,
command: `cd fort && npm run start:prod & sleep 30`,
name: "Fort",
port: 4000
},
Expand Down
6 changes: 5 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { Controller, Guard, Shield, Wall, XmlParser } from '../abstracts';
import { IHttpResult, ISessonStore } from '../interfaces';
import { IControllerRoute, IHttpResult, ISessonStore } from '../interfaces';
import { ErrorHandler } from '../models';

export * from './http_format_result';

export type ErrorResultMapper = (error: any) => IHttpResult;
type Class<I, Args extends any[] = any[]> = new (...args: Args) => I;

// support for old versions
export type ParentRoute = IControllerRoute;

export type TSessionStore = Class<ISessonStore, [string]>;
export type TController = Class<Controller>;
export type TGuard = Class<Guard>;
Expand Down

0 comments on commit fc786d2

Please sign in to comment.