@types/jasmine-es6-promise-matchers
TypeScript icon, indicating that this package has built-in type declarations

0.0.36 • Public • Published

Installation

npm install --save @types/jasmine-es6-promise-matchers

Summary

This package contains type definitions for jasmine-es6-promise-matchers (https://github.com/bvaughn/jasmine-es6-promise-matchers).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine-es6-promise-matchers.

index.d.ts

/// <reference types="jasmine" />

declare namespace JasminePromiseMatchers {
    export function install(): void;
    export function uninstall(): void;
}

declare namespace jasmine {
    interface Matchers<T> {
        /**
         * Verifies that a Promise is (or has been) rejected.
         */
        toBeRejected(done?: () => void): boolean;

        /**
         * Verifies that a Promise is (or has been) rejected with the specified parameter.
         */
        toBeRejectedWith(value: any, done?: () => void): boolean;

        /**
         * Verifies that a Promise is (or has been) resolved.
         */
        toBeResolved(done?: () => void): boolean;

        /**
         * Verifies that a Promise is (or has been) resolved with the specified parameter.
         */
        toBeResolvedWith(value: any, done?: () => void): boolean;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/jasmine

Credits

These definitions were written by Stephen Lautier.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jasmine-es6-promise-matchers

Weekly Downloads

40

Version

0.0.36

License

MIT

Unpacked Size

4.53 kB

Total Files

5

Last publish

Collaborators

  • types