UNPKG

712 BTypeScriptView Raw
1import { $QLike } from '../common/index';
2/**
3 * An angular1-like promise api
4 *
5 * This object implements four methods similar to the
6 * [angular 1 promise api](https://docs.angularjs.org/api/ng/service/$q)
7 *
8 * UI-Router evolved from an angular 1 library to a framework agnostic library.
9 * However, some of the `@uirouter/core` code uses these ng1 style APIs to support ng1 style dependency injection.
10 *
11 * This API provides native ES6 promise support wrapped as a $q-like API.
12 * Internally, UI-Router uses this $q object to perform promise operations.
13 * The `angular-ui-router` (ui-router for angular 1) uses the $q API provided by angular.
14 *
15 * $q-like promise api
16 */
17export declare const $q: $QLike;