@decaf-ts/db-decorators
Version:
Agnostic database decorators and repository
15 lines (14 loc) • 465 B
TypeScript
import { Validator } from "@decaf-ts/decorator-validation";
/**
* @summary Validates the update of a timestamp
*
* @class TimestampValidator
* @extends Validator
*
* @category Validators
*/
export declare class TimestampValidator extends Validator {
constructor();
hasErrors(value: any, ...args: any[]): string | undefined;
updateHasErrors(value: Date | string | number, oldValue: Date | string | number, message?: string): string | undefined;
}