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.
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.