From f08301d2ab46ed81d1a96c738c897c9e010c7093 Mon Sep 17 00:00:00 2001 From: Limon Monte Date: Sun, 12 Jul 2020 18:19:13 +0300 Subject: [PATCH] fix: remove useRejections (#118) --- src/sweetalert2-react-content.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sweetalert2-react-content.d.ts b/src/sweetalert2-react-content.d.ts index 49dbb91..a33e8cb 100644 --- a/src/sweetalert2-react-content.d.ts +++ b/src/sweetalert2-react-content.d.ts @@ -22,9 +22,7 @@ export default function withReactContent(parentSwal?: SweetAlert2): SweetAlert2 interface ReactSweetAlert { (title?: ReactElementOr<'title'>, message?: ReactElementOr<'html'>, icon?: SweetAlertIcon): Promise; - (options: ReactSweetAlertOptions & { useRejections?: false }): Promise; - - (options: ReactSweetAlertOptions & { useRejections: true }): Promise; + (options: ReactSweetAlertOptions): Promise; } type SweetAlert2 = typeof swal;