UNPKG

neura-express-app

Version:

Basic express application starter with some common utilities.

4 lines (3 loc) 240 B
import { ValidationRequestError } from "../errors/api.error"; import { ClassConstructor } from "class-transformer"; export declare const validateData: <T>(constructor: ClassConstructor<T>, body: any) => Promise<ValidationRequestError | T>;