Skip to content

Commit

Permalink
fix(types): add missing params to SweetAlertUpdatableParameters (#2042)
Browse files Browse the repository at this point in the history
* reorder updatableParams alphabetically for easier maintanance

* fix(types): add missing params to SweetAlertUpdatableParameters
  • Loading branch information
limonte committed Sep 3, 2020
1 parent 543fd8e commit 7142fad
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/utils/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,38 +78,38 @@ export const defaultParams = {
}

export const updatableParams = [
'title',
'titleText',
'text',
'html',
'footer',
'icon',
'hideClass',
'customClass',
'allowOutsideClick',
'allowEscapeKey',
'showConfirmButton',
'showCancelButton',
'confirmButtonText',
'confirmButtonAriaLabel',
'confirmButtonColor',
'cancelButtonText',
'allowOutsideClick',
'buttonsStyling',
'cancelButtonAriaLabel',
'cancelButtonColor',
'buttonsStyling',
'reverseButtons',
'showCloseButton',
'closeButtonHtml',
'cancelButtonText',
'closeButtonAriaLabel',
'closeButtonHtml',
'confirmButtonAriaLabel',
'confirmButtonColor',
'confirmButtonText',
'currentProgressStep',
'customClass',
'footer',
'hideClass',
'html',
'icon',
'imageAlt',
'imageHeight',
'imageUrl',
'imageWidth',
'imageHeight',
'imageAlt',
'progressSteps',
'currentProgressStep',
'onClose',
'onAfterClose',
'onDestroy'
'onClose',
'onDestroy',
'progressSteps',
'reverseButtons',
'showCancelButton',
'showCloseButton',
'showConfirmButton',
'text',
'title',
'titleText',
]

export const deprecatedParams = {
Expand Down
3 changes: 3 additions & 0 deletions sweetalert2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ declare module 'sweetalert2' {
| 'cancelButtonAriaLabel'
| 'cancelButtonColor'
| 'cancelButtonText'
| 'closeButtonAriaLabel'
| 'closeButtonHtml'
| 'confirmButtonAriaLabel'
| 'confirmButtonColor'
| 'confirmButtonText'
Expand All @@ -394,6 +396,7 @@ declare module 'sweetalert2' {
| 'progressSteps'
| 'reverseButtons'
| 'showCancelButton'
| 'showCloseButton'
| 'showConfirmButton'
| 'text'
| 'title'
Expand Down

0 comments on commit 7142fad

Please sign in to comment.