# @types/chai-dom

> TypeScript definitions for chai-dom

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

## Install

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

## 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 | 1.11.3 |
| Published | 2023-11-07 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51470 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.11.3 (latest) — 2023-11-07
- 1.11.1 (ts4.3) — 2023-09-04
- 1.11.0 (ts4.1) — 2022-11-07
- 0.0.13 (ts3.9) — 2022-05-09
- 0.0.12 (ts3.8) — 2021-11-23
- 0.0.11 (ts3.7) — 2021-09-16
- 0.0.10 (ts3.0) — 2020-06-08
- 0.0.7 (ts2.0) — 2018-09-20
- 1.11.2 — 2023-10-17
- 0.0.9 — 2020-04-03
- 0.0.8 — 2019-08-08
- 0.0.6 — 2018-01-23
- 0.0.5 — 2016-11-21
- 0.0.4 — 2016-09-19
- 0.0.3 — 2016-08-25
- … 2 more at https://npm.io/package/@types/chai-dom/versions

## README

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

declare namespace Chai {
    interface Assertion {
        attr(name: string, value?: string): Assertion;

        attribute(name: string, value?: string): Assertion;

        class(className: string | RegExp): Assertion;

        id(id: string): Assertion;

        html(html: string): Assertion;

        text(text: string | string[]): Assertion;

        value(text: string): Assertion;

        style(property: string, value: string): Assertion;

        empty: Assertion;

        // exist, length, and contain are already defined in @types/chai and have the
        // same type or a more general type, so don't need to be re-declared even though
        // the implementation is different

        descendant(element: string | HTMLElement): Assertion;

        descendants(selector: string): Assertion;

        displayed: Assertion;

        trimmed: Assertion;

        rendered: Assertion;

        visible: Assertion;

        tagName(name: string): Assertion;

        focus: Assertion;

        checked: Assertion;
    }

    interface Include {
        text(text: string | string[]): Assertion;

        html(text: string | string[]): Assertion;
    }

    interface Match {
        (selector: string): Assertion;
    }
}

declare module "chai-dom" {
    const chaiDom: Chai.ChaiPlugin;
    export = chaiDom;
}

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [@types/chai](https://npmjs.com/package/@types/chai)

# Credits
These definitions were written by [Matt Lewis](https://github.com/mattlewis92).

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