Home > @websublime/schema > DateSchemaType

DateSchemaType class

Date model type validation

Signature:

export declare class DateSchemaType extends BaseSchemaType<Date | string> 

Extends: BaseSchemaType<Date | string>

Constructors

ConstructorModifiersDescription
(constructor)(errorMessage)Create DateSchemaType instance

Properties

PropertyModifiersTypeDescription
typestring

Methods

MethodModifiersDescription
max(max, errorMessage)Test if date is equal or less than maximum date
min(min, errorMessage)Test if date is equal or greater than minimum date
range(min, max, errorMessage)Test if date is between date ranges