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.