@types/angular-q-spread
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

Installation

npm install --save @types/angular-q-spread

Summary

This package contains type definitions for angular-q-spread (https://www.npmjs.com/package/angular-q-spread).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-q-spread.

index.d.ts

import * as a from "angular";

declare module "angular" {
    interface IPromise<T> {
        /**
         This method can be used as a replacement for then. Similarly, it takes two parameters, a callback when all promises are resolved and a callback for failure. The resolve callback is going to be called with the result of the list of promises passed to $q.all as separate parameters instead of one parameters which is an array.
         * @param successCallback Callback for resolved promise, similar to then's one, but takes multiple parameters instead of single array parameter
         * @param errorCallback Callback for error, the same as for then
         */
        spread<TResult>(
            successCallback: (...promiseValues: any[]) => IPromise<TResult> | TResult,
            errorCallback?: (reason: any) => any,
        ): IPromise<TResult>;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by rafw87.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/angular-q-spread

Weekly Downloads

16

Version

0.0.9

License

MIT

Unpacked Size

4.41 kB

Total Files

5

Last publish

Collaborators

  • types