# IAlertResult

The result of calling the useAlert hook. This gives you methods to invoke a alert or a confirm alert

## Definition

```tsx
interface IAlertResult {
    show: (content: string | IBaseAlertProps) => Promise<any>,
    confirm: (content: string | IConfirmAlertProps) => Promise<boolean>
    form: (content: IFormAlertProps) => Promise<any>
    info: (content: string | IBaseAlertProps) => Promise<any>
    success: (content: string | IBaseAlertProps) => Promise<any>
    warning: (content: string | IBaseAlertProps) => Promise<any>
    error: (content: string | IBaseAlertProps) => Promise<any>
}
```

## Usage

```tsx
import { IAlertResult } from 'uxp/components';
```

## Related Types

* [IBaseAlertProps](https://help.iviva.com/uxp/v5/additional-resources/types/ibasealertprops)
* [IAlertContent](https://help.iviva.com/uxp/v5/additional-resources/types/ialertcontent)
* [IConfirmAlertProps](https://help.iviva.com/uxp/v5/additional-resources/types/iconfirmalertprops)
* [IFormAlertProps](https://help.iviva.com/uxp/v5/additional-resources/types/iformalertprops)
* [IAlertFormField](https://help.iviva.com/uxp/v5/additional-resources/types/ialertformfield)
* [DynamicFormFieldProps](https://help.iviva.com/uxp/v5/additional-resources/types/dynamicformfieldprops)
* [FormValue](https://help.iviva.com/uxp/v5/additional-resources/types/formvalue)
* [IFormData](https://help.iviva.com/uxp/v5/additional-resources/types/iformdata)
* [CustomValidateResponse](https://help.iviva.com/uxp/v5/additional-resources/types/customvalidateresponse)
* [FormSectionProps](https://help.iviva.com/uxp/v5/additional-resources/types/formsectionprops)
