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

1.0.3 • Public • Published

Installation

npm install --save @types/chai-almost

Summary

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

Details

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

index.d.ts

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

declare global {
    namespace Chai {
        interface Assertion {
            almost: ChaiAlmost.Almost;
        }
        interface Deep {
            almost: ChaiAlmost.DeepAlmost;
        }

        namespace ChaiAlmost {
            interface DeepAlmost {
                (value: any, toleranceOverride?: number): Assertion;
                equal: Equal;
                equals: Equal;
                eq: Equal;
            }
            interface Almost extends DeepAlmost {
                eql: Equal;
                eqls: Equal;
            }
        }
    }
}

declare function chaiAlmost(tolerance?: number): Chai.ChaiPlugin;
export = chaiAlmost;

Additional Details

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

Credits

These definitions were written by Lennard Schulz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chai-almost

Weekly Downloads

5,555

Version

1.0.3

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • types