@webilix/nestjs-helper
Version:
Helper library for NestJS
17 lines • 859 B
TypeScript
export declare class Errors {
static throw: (error: string) => void;
static undefined: (title: string) => string;
static invalid: (title: string) => string;
static empty: (title: string) => string;
static unique: (title: string) => string;
static minimum: (title: string, value: number) => string;
static maximum: (title: string, value: number) => string;
static eqLength: (title: string, value: number) => string;
static minLength: (title: string, value: number) => string;
static maxLength: (title: string, value: number) => string;
static minDate: (title: string, value: Date) => string;
static maxDate: (title: string, value: Date) => string;
static minCount: (title: string, value: number) => string;
static maxCount: (title: string, value: number) => string;
}
//# sourceMappingURL=errors.d.ts.map