# @types/chai-subset

> TypeScript definitions for chai-subset

Latest version **1.3.6** (published 2025-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/chai-subset
pnpm add @types/chai-subset
yarn add @types/chai-subset
bun add @types/chai-subset
```

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.3.6 |
| Published | 2025-03-05 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.3.6 (latest) — 2025-03-05
- 1.3.5 (ts4.7) — 2023-11-07
- 1.3.3 (ts3.6) — 2019-08-08
- 1.3.2 (ts2.1) — 2019-02-13
- 1.3.4 — 2023-10-17
- 1.3.1 — 2017-08-21
- 1.3.0 — 2017-01-02
- 1.0.29 — 2016-09-19
- 1.0.28 — 2016-07-14
- 1.0.27-alpha — 2016-07-08
- 1.0.26-alpha — 2016-07-03
- 1.0.25-alpha — 2016-07-02
- 1.0.24-alpha — 2016-07-01
- 1.0.23-alpha — 2016-07-01
- 1.0.22-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/chai-subset/versions

## README

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

declare global {
    namespace Chai {
        interface Assertion {
            containSubset(expected: any): Assertion;
        }
        interface Assert {
            containSubset(val: any, exp: any, msg?: string): void;
        }
    }
}

declare const chaiSubset: Chai.ChaiPlugin;
export = chaiSubset;

````

### Additional Details
 * Last updated: Wed, 05 Mar 2025 19:02:12 GMT
 * Dependencies: none
 * Peer dependencies: [@types/chai](https://npmjs.com/package/@types/chai)

# Credits
These definitions were written by [Sam Noedel](https://github.com/delta62), and [Andrew Brown](https://github.com/AGBrown).

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