Function for displaying an alert modal.

  • Parameters

    • Optionalparams: IParams

      The alert parameters.

      • title

        The title of the alert. Default is "Alert".

      • description

        The description of the alert. Default is an empty string.

      • large

        Whether to display a large alert. Default is false.

    Returns (
        __namedParameters?: Partial<IParams>,
    ) => { then: (onData: Fn) => void; toPromise: () => Promise<void> }

    • A function that, when called, displays the alert and returns a Promise. The Promise resolves when the alert is closed.