Skip to content

Commit

Permalink
Merge pull request #45 from open-formulieren/date-datetime-validator
Browse files Browse the repository at this point in the history
[open-formulieren/open-forms#3978] Fix validator of `date` and `datetime`
  • Loading branch information
Viicos authored Mar 11, 2024
2 parents 67eacfd + 35192ba commit 2800feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/formio/components/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
PickerCustomOptions,
} from '../dates';

type Validator = 'required';
type Validator = 'required' | 'minDate' | 'maxDate';
type TranslatableKeys = 'label' | 'description' | 'tooltip';

export type DateInputSchema = InputComponentSchema<string, Validator, TranslatableKeys>;
Expand Down
2 changes: 1 addition & 1 deletion src/formio/components/datetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
PickerCustomOptions,
} from '../dates';

type Validator = 'required';
type Validator = 'required' | 'minDate' | 'maxDate';
type TranslatableKeys = 'label' | 'description' | 'tooltip';

export type DateTimeInputSchema = InputComponentSchema<string, Validator, TranslatableKeys>;
Expand Down

0 comments on commit 2800feb

Please sign in to comment.