diff --git a/api/@internal/component/ets/date_picker.d.ts b/api/@internal/component/ets/date_picker.d.ts index 01843f343801fdd68fcbc0185832317dcf1a9552..d5c55b20326d52915413b59f6e530182066a9787 100644 --- a/api/@internal/component/ets/date_picker.d.ts +++ b/api/@internal/component/ets/date_picker.d.ts @@ -153,17 +153,17 @@ declare interface DatePickerDialogOption extends DatePickerOption { * Called when the OK button in the dialog is clicked. * @since 8 */ - onAccept: (value: DatePickerResult) => void; + onAccept?: (value: DatePickerResult) => void; /** * Called when the Cancel button in the dialog is clicked. * @since 8 */ - onCancel: () => void; + onCancel?: () => void; /** * This event is triggered when a DatePicker date or time is selected in dialog. * @since 8 */ - onChange: (value: DatePickerResult) => void; + onChange?: (value: DatePickerResult) => void; } /** diff --git a/api/@internal/component/ets/text_picker.d.ts b/api/@internal/component/ets/text_picker.d.ts index ed30ed543ae3abb57d23dd84b25e259331f20c01..8db6d4687d45dba790fed2ec386002c311ea08b8 100644 --- a/api/@internal/component/ets/text_picker.d.ts +++ b/api/@internal/component/ets/text_picker.d.ts @@ -101,17 +101,17 @@ declare interface TextPickerDialogOption extends TextPickerOption { * Called when the OK button in the dialog is clicked. * @since 8 */ - onAccept: (value: TextPickerResult) => void; + onAccept?: (value: TextPickerResult) => void; /** * Called when the Cancel button in the dialog is clicked. * @since 8 */ - onCancel: () => void; + onCancel?: () => void; /** * This event is triggered when a TextPicker text is selected in dialog. * @since 8 */ - onChange: (value: TextPickerResult) => void; + onChange?: (value: TextPickerResult) => void; } /**