# @types/chai-arrays

> TypeScript definitions for chai-arrays

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

## Install

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

## 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.0.3 |
| Published | 2023-11-07 |
| First published | 2017-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51470 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.0.3 (latest) — 2023-11-07
- 2.0.0 (ts3.7) — 2021-01-13
- 1.0.3 (ts3.1) — 2019-08-08
- 1.0.2 (ts2.3) — 2017-08-21
- 2.0.2 — 2023-10-17
- 2.0.1 — 2023-09-19
- 1.0.1 — 2017-06-02
- 1.0.0 — 2017-05-03

## README

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

declare global {
    namespace Chai {
        interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
            array(): Assertion;
            Uint8Array(): Assertion;
            Uint16Array(): Assertion;
            Uint32Array(): Assertion;
            Uint8ClampedArray(): Assertion;
            ofSize(size: number): Assertion;
            equalTo(arr: any[]): Assertion;
            containing(value: any): Assertion;
            containingAllOf(values: any[]): Assertion;
            containingAnyOf(values: any[]): Assertion;
            sorted(): Assertion;
            sorted<TElement = any>(comparefn: (a: TElement, b: TElement) => number): Assertion;
        }

        interface Assert {
            array(val: any[], msg?: string): void;
            Uint8Array(val: any, msg?: string): void;
            Uint16Array(val: any, msg?: string): void;
            Uint32Array(val: any, msg?: string): void;
            Uint8ClampedArray(val: any, msg?: string): void;
            ofSize(val: any[], size: number, msg?: string): void;
            equalTo(val: any[], array: any[], msg?: string): void;
            containing(val: any[], value: any, msg?: string): void;
            containingAllOf(val: any[], values: any[], msg?: string): void;
            containingAnyOf(val: any[], values: any[], msg?: string): void;
            sorted(val: any[], msg?: string): void;
            sorted<TElement>(val: TElement[], comparefn: (a: TElement, b: TElement) => number, msg?: string): void;
        }
    }
}

declare const chaiArrays: Chai.ChaiPlugin;
export = chaiArrays;

````

### 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 [Clément Prévot](https://github.com/clementprevot).

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