# @types/sinon-stub-promise

> TypeScript definitions for sinon-stub-promise

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

## Install

```sh
npm install @types/sinon-stub-promise
pnpm add @types/sinon-stub-promise
yarn add @types/sinon-stub-promise
bun add @types/sinon-stub-promise
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.10 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/sinon](https://npm.io/package/@types/sinon.md) *

## Recent versions

- 2.1.10 (latest) — 2023-11-07
- 2.1.7 (ts3.2) — 2020-09-26
- 2.1.6 (ts2.8) — 2020-03-31
- 2.1.2 (ts2.3) — 2018-05-10
- 1.1.0 (ts2.2) — 2017-07-07
- 1.0.28 (ts2.0) — 2017-06-02
- 2.1.9 — 2023-10-18
- 2.1.8 — 2023-09-25
- 2.1.5 — 2018-12-12
- 2.1.4 — 2018-11-18
- 2.1.3 — 2018-05-24
- 2.1.1 — 2018-05-09
- 2.1.0 — 2018-01-30
- 1.1.1 — 2017-11-09
- 1.0.29 — 2017-06-05
- … 11 more at https://npm.io/package/@types/sinon-stub-promise/versions

## README

# Installation
> `npm install --save @types/sinon-stub-promise`

# Summary
This package contains type definitions for sinon-stub-promise (https://github.com/substantial/sinon-stub-promise).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon-stub-promise.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon-stub-promise/index.d.ts)
````ts
/// <reference types="sinon"/>

declare module "sinon" {
    interface SinonThenable {
        resolved: boolean;
        rejected: boolean;
        resolveValue: any;
        rejectValue: any;
        then(onFulfill: (resolveValue?: any) => void, onReject?: (rejectValue?: any) => void): SinonThenable;
        catch(onReject: (rejectValue?: any) => void): SinonThenable;
        finally(callback: () => void): SinonThenable;
    }

    interface SinonStub {
        thenable: SinonThenable;
        returnsPromise(): SinonStub;
        resolves(value?: any): SinonStub;
        rejects(value?: any): SinonStub;
    }
}

declare function sinonStubPromise(sinon: sinon.SinonStatic): void;
export = sinonStubPromise;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/sinon](https://npmjs.com/package/@types/sinon)

# Credits
These definitions were written by [Thiago Temple](https://github.com/vintem), and [Tim Stackhouse](https://github.com/tstackhouse).

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