sweetalert2 11.7.21 → 11.7.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sweetalert2.d.ts CHANGED
@@ -25,7 +25,7 @@ declare module 'sweetalert2' {
25
25
  * })
26
26
  * ```
27
27
  */
28
- function fire<T = any>(options: SweetAlertOptions<T>): Promise<SweetAlertResult<Awaited<T>>>
28
+ function fire<T = any>(options: SweetAlertOptions): Promise<SweetAlertResult<Awaited<T>>>
29
29
 
30
30
  /**
31
31
  * Function to display a simple SweetAlert2 popup.
@@ -303,7 +303,7 @@ declare module 'sweetalert2' {
303
303
  *
304
304
  * @param params The array of arguments to normalize.
305
305
  */
306
- function argsToParams<T>(params: SweetAlertArrayOptions | readonly [SweetAlertOptions<T>]): SweetAlertOptions<T>
306
+ function argsToParams(params: SweetAlertArrayOptions | readonly [SweetAlertOptions]): SweetAlertOptions
307
307
 
308
308
  /**
309
309
  * An enum of possible reasons that can explain an alert dismissal.
@@ -445,7 +445,7 @@ declare module 'sweetalert2' {
445
445
  readonly dismiss?: Swal.DismissReason
446
446
  }
447
447
 
448
- export interface SweetAlertOptions<PreConfirmResult = any, PreConfirmCallbackValue = any> {
448
+ export interface SweetAlertOptions {
449
449
  /**
450
450
  * The title of the popup, as HTML.
451
451
  * It can either be added to the object under the key `title` or passed as the first parameter of `Swal.fire()`.
@@ -951,7 +951,7 @@ declare module 'sweetalert2' {
951
951
  *
952
952
  * @default undefined
953
953
  */
954
- preConfirm?(inputValue: PreConfirmCallbackValue): SyncOrAsync<PreConfirmResult>
954
+ preConfirm?(inputValue: any): SyncOrAsync<any>
955
955
 
956
956
  /**
957
957
  * Function to execute before denying, may be async (Promise-returning) or sync.