@jschmold/kor
Version:
`npm i mocha ts-node typedoc typescript --global`
9 lines (8 loc) • 590 B
TypeScript
import { RouterOptions } from 'express';
export interface IRouteableOptions {
baseUrl?: string;
}
export declare type RouteType = 'all' | 'get' | 'post' | 'put' | 'patch' | 'delete';
export declare function Routeable(baseUrl: string, parent?: Function, options?: RouterOptions | undefined): (constructor: Function) => void;
export declare function Route(type: "delete" | "all" | "get" | "post" | "put" | "patch" | undefined, arg: (string | RegExp)): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
export declare function bindRouteable(cls: Function): void;