Skip to content

Commit

Permalink
fix(types): remove the readonly modifier from 'SweetAlertOptions' (#1996
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rafaelss95 authored and limonte committed Jun 8, 2020
1 parent eecd0b0 commit 74c630b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sweetalert2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ declare module 'sweetalert2' {

export type SweetAlertArrayOptions = [string?, string?, SweetAlertIcon?];

export interface SweetAlertOptions<PreConfirmResult = any, PreConfirmCallbackValue = any> extends Readonly<{
export interface SweetAlertOptions<PreConfirmResult = any, PreConfirmCallbackValue = any> {
/**
* The title of the popup, as HTML.
* It can either be added to the object under the key `title` or passed as the first parameter of `Swal.fire()`.
Expand Down Expand Up @@ -986,7 +986,7 @@ declare module 'sweetalert2' {
* @default true
*/
scrollbarPadding?: boolean;
}> { }
}

export default Swal
}
Expand Down

0 comments on commit 74c630b

Please sign in to comment.