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

2.6.7 • Public • Published

Installation

npm install --save @types/jasmine-given

Summary

This package contains type definitions for jasmine-given (https://github.com/searls/jasmine-given).

Details

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

index.d.ts

/** Action method that should be called when the async work is complete */
interface DoneFn {
    (): void;

    /** fails the spec and indicates that it has completed. If the message is an Error, Error.message is used */
    fail: (message?: Error | string) => void;
}

declare function Given(func: (done: DoneFn) => void): void;
declare function When(func: (done: DoneFn) => void): void;
declare function Then(func: (done: DoneFn) => void): void;
declare function Then(label: string, func: (done: DoneFn) => void): void;
declare function And(func: (done: DoneFn) => void): void;
declare function Invariant(func: (done: DoneFn) => void): void;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Shai Reznik, and Dmitry Efimenko.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jasmine-given

Weekly Downloads

60

Version

2.6.7

License

MIT

Unpacked Size

4.07 kB

Total Files

5

Last publish

Collaborators

  • types