# @types/jasmine-given

> TypeScript definitions for jasmine-given

Latest version **2.6.7** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jasmine-given
pnpm add @types/jasmine-given
yarn add @types/jasmine-given
bun add @types/jasmine-given
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.6.7 |
| Published | 2023-11-07 |
| First published | 2017-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51431 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/jasmine-given
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine-given
- npm.io page: https://npm.io/package/@types/jasmine-given

## Recent versions

- 2.6.7 (latest) — 2023-11-07
- 2.6.4 (ts2.1) — 2019-05-31
- 2.6.3 (ts2.0) — 2018-12-31
- 2.6.6 — 2023-10-18
- 2.6.5 — 2023-09-15
- 2.6.2 — 2017-11-13
- 2.6.1 — 2017-07-17
- 2.6.0 — 2017-06-15

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine-given/index.d.ts)
````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](https://github.com/shairez), and [Dmitry Efimenko](https://github.com/DmitryEfimenko).

---
_Source: https://npm.io/package/@types/jasmine-given · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
