File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/main/src/components/VariantManagement Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,14 @@ export interface VariantManagementPropTypes extends Omit<CommonProps, 'onSelect'
158
158
*
159
159
* __Note:__ Calling `event.preventDefault()` prevents the dialog from closing when clicked.
160
160
*/
161
- onSaveAs ?: ( e : Parameters < ButtonPropTypes [ 'onClick' ] > [ 0 ] & { detail : SelectedVariant } ) => void ;
161
+ onSaveAs ?: ( e : Parameters < NonNullable < ButtonPropTypes [ 'onClick' ] > > [ 0 ] & { detail : SelectedVariant } ) => void ;
162
162
/**
163
163
* The event is fired when the "Save" button is clicked inside the Manage Views dialog.
164
164
*
165
165
* __Note:__ Calling `event.preventDefault()` prevents the dialog from closing when clicked.
166
166
*/
167
167
onSaveManageViews ?: (
168
- e : Parameters < ButtonPropTypes [ 'onClick' ] > [ 0 ] & {
168
+ e : Parameters < NonNullable < ButtonPropTypes [ 'onClick' ] > > [ 0 ] & {
169
169
detail : {
170
170
deletedVariants : VariantItemPropTypes [ ] ;
171
171
prevVariants : VariantItemPropTypes [ ] ;
@@ -179,7 +179,7 @@ export interface VariantManagementPropTypes extends Omit<CommonProps, 'onSelect'
179
179
*
180
180
* __Note:__ The save button is only displayed if the `VariantManagement` is in `dirtyState` and the selected variant is not in `readOnly` mode.
181
181
*/
182
- onSave ?: ( e : Parameters < ButtonPropTypes [ 'onClick' ] > [ 0 ] & { detail : SelectedVariant } ) => void ;
182
+ onSave ?: ( e : Parameters < NonNullable < ButtonPropTypes [ 'onClick' ] > > [ 0 ] & { detail : SelectedVariant } ) => void ;
183
183
}
184
184
185
185
const styles = {
You can’t perform that action at this time.
0 commit comments