Home > @websublime/schema > DateSchemaType
DateSchemaType class
Date model type validation
Signature:
export declare class DateSchemaType extends BaseSchemaType<Date | string>
Extends: BaseSchemaType<Date | string>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(errorMessage) | Create DateSchemaType instance |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| type | string |
Methods
| Method | Modifiers | Description |
|---|---|---|
| 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 |