UNPKG

tedi

Version:

Express wrappper written in typescript with dependency injection capabilities

11 lines (10 loc) 386 B
import * as express from "express"; import { TediError } from "./tedi-error"; export interface Filter<T> { apply(req: express.Request, res: express.Response): any; getDataFromRequest(req: express.Request): T; } export declare function validateFilter(instance: Filter<any>): void; export declare class FilterError extends TediError { constructor(target: any, error?: any); }