@types/chai-sorted
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

Installation

npm install --save @types/chai-sorted

Summary

This package contains type definitions for chai-sorted (https://github.com/johntimothybailey/chai-sorted#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-sorted.

index.d.ts

/// <reference types="chai" />

declare global {
    namespace Chai {
        interface Assertion {
            sorted(options?: { descending: boolean }): Assertion;
            sortedBy(key: string, options?: { descending: boolean }): Assertion;
            ascendingBy(key: string): Assertion;
            descendingBy(key: string): Assertion;
            ascending: Assertion;
            descending: Assertion;
        }
    }
}

declare const chaiSorted: Chai.ChaiPlugin;
declare namespace chaiSorted {}
export = chaiSorted;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/chai

Credits

These definitions were written by Reinert Lemmens.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chai-sorted

Weekly Downloads

7,353

Version

0.2.3

License

MIT

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • types