Skip to content

Commit

Permalink
fix: remove useRejections (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte authored Jul 12, 2020
1 parent 75d04e4 commit fa56960
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sweetalert2-react-content.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export default function withReactContent(parentSwal?: SweetAlert2): SweetAlert2
interface ReactSweetAlert {
(title?: ReactElementOr<'title'>, message?: ReactElementOr<'html'>, icon?: SweetAlertIcon): Promise<SweetAlertResult>;

(options: ReactSweetAlertOptions & { useRejections?: false }): Promise<SweetAlertResult>;

(options: ReactSweetAlertOptions & { useRejections: true }): Promise<any>;
(options: ReactSweetAlertOptions): Promise<SweetAlertResult>;
}

type SweetAlert2 = typeof swal;
Expand Down

0 comments on commit fa56960

Please sign in to comment.