UNPKG

ember-ajax

Version:

Service for making AJAX requests in Ember applications.

10 lines (9 loc) 348 B
import { AJAXOptions, Response } from './-private/types'; import AJAXPromise from 'ember-ajax/-private/promise'; /** * Helper function that allows you to use the default `ember-ajax` to make * requests without using the service. * * @public */ export default function request<T = Response>(url: string, options?: AJAXOptions): AJAXPromise<T>;