Init commit.
This commit is contained in:
21
@types/deep-eql/LICENSE
Normal file
21
@types/deep-eql/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
57
@types/deep-eql/README.md
Normal file
57
@types/deep-eql/README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# Installation
|
||||
> `npm install --save @types/deep-eql`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for deep-eql (https://github.com/chaijs/deep-eql).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-eql.
|
||||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-eql/index.d.ts)
|
||||
````ts
|
||||
declare namespace deepEqual {
|
||||
/**
|
||||
* Memoization class used to speed up comparison.
|
||||
*/
|
||||
class MemoizeMap extends WeakMap<object, MemoizeMap | boolean> {}
|
||||
|
||||
interface DeepEqualOptions<T1 = unknown, T2 = unknown> {
|
||||
/**
|
||||
* Override default algorithm, determining custom equality.
|
||||
*/
|
||||
comparator?: (leftHandOperand: T1, rightHandOperand: T2) => boolean | null;
|
||||
|
||||
/**
|
||||
* Provide a custom memoization object which will cache the results of
|
||||
* complex objects for a speed boost.
|
||||
*
|
||||
* By passing `false` you can disable memoization, but this will cause circular
|
||||
* references to blow the stack.
|
||||
*/
|
||||
memoize?: MemoizeMap | false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert deeply nested sameValue equality between two objects of any type.
|
||||
*
|
||||
* @param leftHandOperand
|
||||
* @param rightHandOperand
|
||||
* @param [options] Additional options
|
||||
* @return equal match
|
||||
*/
|
||||
declare function deepEqual<T1, T2>(
|
||||
leftHandOperand: T1,
|
||||
rightHandOperand: T2,
|
||||
options?: deepEqual.DeepEqualOptions<T1, T2>,
|
||||
): boolean;
|
||||
|
||||
export = deepEqual;
|
||||
|
||||
````
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Rodrigo Pietnechuk](https://github.com/ghnoob).
|
||||
38
@types/deep-eql/index.d.ts
vendored
Normal file
38
@types/deep-eql/index.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
declare namespace deepEqual {
|
||||
/**
|
||||
* Memoization class used to speed up comparison.
|
||||
*/
|
||||
class MemoizeMap extends WeakMap<object, MemoizeMap | boolean> {}
|
||||
|
||||
interface DeepEqualOptions<T1 = unknown, T2 = unknown> {
|
||||
/**
|
||||
* Override default algorithm, determining custom equality.
|
||||
*/
|
||||
comparator?: (leftHandOperand: T1, rightHandOperand: T2) => boolean | null;
|
||||
|
||||
/**
|
||||
* Provide a custom memoization object which will cache the results of
|
||||
* complex objects for a speed boost.
|
||||
*
|
||||
* By passing `false` you can disable memoization, but this will cause circular
|
||||
* references to blow the stack.
|
||||
*/
|
||||
memoize?: MemoizeMap | false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert deeply nested sameValue equality between two objects of any type.
|
||||
*
|
||||
* @param leftHandOperand
|
||||
* @param rightHandOperand
|
||||
* @param [options] Additional options
|
||||
* @return equal match
|
||||
*/
|
||||
declare function deepEqual<T1, T2>(
|
||||
leftHandOperand: T1,
|
||||
rightHandOperand: T2,
|
||||
options?: deepEqual.DeepEqualOptions<T1, T2>,
|
||||
): boolean;
|
||||
|
||||
export = deepEqual;
|
||||
25
@types/deep-eql/package.json
Normal file
25
@types/deep-eql/package.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "@types/deep-eql",
|
||||
"version": "4.0.2",
|
||||
"description": "TypeScript definitions for deep-eql",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-eql",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Rodrigo Pietnechuk",
|
||||
"githubUsername": "ghnoob",
|
||||
"url": "https://github.com/ghnoob"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/deep-eql"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "3b8981ce557947fc00ca08cbd93b4206bfc0943360956867381a0a3f6b1eabf5",
|
||||
"typeScriptVersion": "4.5"
|
||||
}
|
||||
Reference in New Issue
Block a user