New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

TypeScript definitions for deep-equal-in-any-order

  • 1.0.4
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • ts5.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61K
increased by3.22%
Maintainers
1
Weekly downloads
 
Created
Source

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.

index.d.ts

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.

FAQs

Package last updated on 13 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc