AjaxOptions interface
Defines the structure of AJAX request
Properties
Section titled “Properties”beforeSend
Section titled “beforeSend”● beforeSend?: (xhr: XMLHttpRequest, data: any) => void
contentType
Section titled “contentType”● contentType?: string
● data?: any
dataType
Section titled “dataType”● dataType?: string
● error?: (error: XMLHttpRequest, status: number, statusMessage: string) => void
success
Section titled “success”● success?: (result: any, xhr?: XMLHttpRequest) => void
● type?: string
● url: string