UNPKG

629 BTypeScriptView Raw
1// Type definitions for chai-subset 1.3
2// Project: https://github.com/debitoor/chai-subset
3// Definitions by: Sam Noedel <https://github.com/delta62>, Andrew Brown <https://github.com/AGBrown>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5// TypeScript Version: 3.0
6
7/// <reference types="chai" />
8
9declare global {
10 namespace Chai {
11 interface Assertion {
12 containSubset(expected: any): Assertion;
13 }
14 interface Assert {
15 containSubset(val: any, exp: any, msg?: string): void;
16 }
17 }
18}
19
20declare const chaiSubset: Chai.ChaiPlugin;
21export = chaiSubset;