UNPKG

348 BTypeScriptView Raw
1import { AJAXOptions, Response } from './-private/types';
2import AJAXPromise from 'ember-ajax/-private/promise';
3/**
4 * Helper function that allows you to use the default `ember-ajax` to make
5 * requests without using the service.
6 *
7 * @public
8 */
9export default function request<T = Response>(url: string, options?: AJAXOptions): AJAXPromise<T>;