// Type definitions for jasmine-promise-matchers // Project: https://github.com/bvaughn/jasmine-promise-matchers // Definitions by: Matthew Hill // Definitions: https://github.com/borisyankov/DefinitelyTyped /// declare function installPromiseMatchers(): void; declare module jasmine { interface Matchers { /** * Verifies that a Promise is (or has been) rejected. */ toBeRejected(): boolean; /** * Verifies that a Promise is (or has been) rejected with the specified parameter. */ toBeRejectedWith(value: any): boolean; /** * Verifies that a Promise is (or has been) resolved. */ toBeResolved(): boolean; /** * Verifies that a Promise is (or has been) resolved with the specified parameter. */ toBeResolvedWith(value: any): boolean; } }