Skip to content

Commit 7b43c9d

Browse files
Merge pull request #8170 from J43fura/fix-updateModelType
fix `DatePickerProps`: make `updateModelType` optional
2 parents 08129b1 + 73ccac7 commit 7b43c9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/showcase/doc/common/apidoc/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24442,7 +24442,7 @@
2444224442
},
2444324443
{
2444424444
"name": "updateModelType",
24445-
"optional": false,
24445+
"optional": true,
2444624446
"readonly": false,
2444724447
"type": "undefined | HintedString<\"string\" | \"date\">",
2444824448
"default": "date",

packages/primevue/src/datepicker/DatePicker.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export interface DatePickerProps {
542542
* Type of the value to write back to modelValue.
543543
* @defaultValue date
544544
*/
545-
updateModelType: HintedString<'date' | 'string'> | undefined;
545+
updateModelType?: HintedString<'date' | 'string'> | undefined;
546546
/**
547547
* When enabled, displays the datepicker as inline instead of an overlay.
548548
* @defaultValue false

0 commit comments

Comments
 (0)