UNPKG

@anyhowstep/ts-route-server

Version:

7 lines (6 loc) 339 B
/// <reference types="express" /> import { Schema } from "@anyhowstep/schema"; import * as express from "express"; export declare class SchemaMiddleware { static Create<T>(name: string, getMixed: (req: express.Request) => any, schema?: Schema<T>): (_req: express.Request, _res: express.Response, next: express.NextFunction) => void; }