ember-ajax
Version:
Service for making AJAX requests in Ember applications.
13 lines (12 loc) • 419 B
TypeScript
import AJAXPromise from 'ember-ajax/-private/promise';
import { Response, RawResponse, AJAXOptions } from './-private/types';
/**
* Same as `request` except it resolves an object with
*
* {response, textStatus, jqXHR}
*
* Useful if you need access to the jqXHR object for headers, etc.
*
* @public
*/
export default function raw<T = Response>(url: string, options?: AJAXOptions): AJAXPromise<RawResponse<T>>;