@types/deep-equal-in-any-order
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Installation

npm install --save @types/deep-equal-in-any-order

Summary

This package contains type definitions for deep-equal-in-any-order (https://github.com/oprogramador/deep-equal-in-any-order#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-equal-in-any-order.

declare global {
    namespace Chai {
        interface Deep {
            equalInAnyOrder: Equal;
        }
    }
}

declare global {
    namespace Chai {
        interface Assert {
            /**
             * It works in similar way as deepEqual but it doesn’t checks the arrays order (at any level of nested objects and arrays).
             * The array elements can be any JS entity (boolean, null, number, string, object, array…).
             *
             * T   Type of the objects.
             * @param actual   Actual value.
             * @param expected   Potential expected value.
             * @param message   Message to display on error.
             */
            deepEqualInAnyOrder: <T>(actual: T, expected: T, message?: string) => void;

            /**
             * It works in similar way as notDeepEqual but it doesn’t checks the arrays order (at any level of nested objects and arrays).
             * The array elements can be any JS entity (boolean, null, number, string, object, array…).
             *
             * T   Type of the objects.
             * @param actual   Actual value.
             * @param expected   Potential expected value.
             * @param message   Message to display on error.
             */
            notDeepEqualInAnyOrder: <T>(actual: T, expected: T, message?: string) => void;
        }
    }
}

declare const deepEqualInAnyOrder: Chai.ChaiPlugin;
export = deepEqualInAnyOrder;

Additional Details

  • Last updated: Fri, 13 Dec 2024 13:09:04 GMT
  • Dependencies: none

Credits

These definitions were written by Bastien Caudan.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.335,991ts4.5
1.0.335,991ts4.6
1.0.335,991ts4.7
1.0.335,991ts4.8
1.0.335,991ts4.9
1.0.127,845ts3.2
1.0.127,845ts3.3
1.0.127,845ts3.4
1.0.127,845ts3.5
1.0.127,845ts3.0
1.0.127,845ts3.1
1.0.127,845ts3.6
1.0.127,845ts3.7
1.0.127,845ts3.8
1.0.127,845ts3.9
1.0.127,845ts4.0
1.0.127,845ts4.1
1.0.127,845ts4.2
1.0.127,845ts4.3
1.0.127,845ts4.4
1.0.47,342ts5.8
1.0.47,342ts5.7
1.0.47,342ts5.6
1.0.47,342latest
1.0.47,342ts5.0
1.0.47,342ts5.1
1.0.47,342ts5.2
1.0.47,342ts5.3
1.0.47,342ts5.4
1.0.47,342ts5.5
1.0.011ts2.0
1.0.011ts2.1
1.0.011ts2.2
1.0.011ts2.3
1.0.011ts2.4
1.0.011ts2.5
1.0.011ts2.6
1.0.011ts2.7
1.0.011ts2.8
1.0.011ts2.9

Version History

VersionDownloads (Last 7 Days)Published
1.0.47,342
1.0.335,991
1.0.2281
1.0.127,845
1.0.011

Package Sidebar

Install

npm i @types/deep-equal-in-any-order

Weekly Downloads

71,470

Version

1.0.4

License

MIT

Unpacked Size

5.62 kB

Total Files

5

Last publish

Collaborators

  • types