mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 11:07:32 +08:00
Merge pull request #19804 from valotas/fix16587
fix: do not make use of es6's Map and Set
This commit is contained in:
16
types/sinon/index.d.ts
vendored
16
types/sinon/index.d.ts
vendored
@@ -395,26 +395,34 @@ declare namespace Sinon {
|
||||
contains(expected: any[]): SinonMatcher;
|
||||
}
|
||||
|
||||
interface SimplifiedSet {
|
||||
has(el: any): boolean;
|
||||
}
|
||||
|
||||
interface SimplifiedMap extends SimplifiedSet {
|
||||
get(key: any): any;
|
||||
}
|
||||
|
||||
interface SinonMapMatcher extends SinonMatcher {
|
||||
/**
|
||||
* Requires a Map to be deep equal another one.
|
||||
*/
|
||||
deepEquals(expected: Map<any, any>): SinonMatcher;
|
||||
deepEquals(expected: SimplifiedMap): SinonMatcher;
|
||||
/**
|
||||
* Requires a Map to contain each one of the items the given map has.
|
||||
*/
|
||||
contains(expected: Map<any, any>): SinonMatcher;
|
||||
contains(expected: SimplifiedMap): SinonMatcher;
|
||||
}
|
||||
|
||||
interface SinonSetMatcher extends SinonMatcher {
|
||||
/**
|
||||
* Requires a Set to be deep equal another one.
|
||||
*/
|
||||
deepEquals(expected: Set<any>): SinonMatcher;
|
||||
deepEquals(expected: SimplifiedSet): SinonMatcher;
|
||||
/**
|
||||
* Requires a Set to contain each one of the items the given set has.
|
||||
*/
|
||||
contains(expected: Set<any>): SinonMatcher;
|
||||
contains(expected: SimplifiedSet): SinonMatcher;
|
||||
}
|
||||
|
||||
interface SinonMatch {
|
||||
|
||||
Reference in New Issue
Block a user