typia
Version:
Superfast runtime validators with only one line
13 lines (12 loc) • 410 B
TypeScript
import { MetadataFactory } from "../factories/MetadataFactory";
export declare class TransformerError extends Error {
readonly code: string;
constructor(props: TransformerError.IProps);
}
export declare namespace TransformerError {
interface IProps {
code: string;
message: string;
}
const from: (method: string) => (errors: MetadataFactory.IError[]) => TransformerError;
}