@types/chai-subset
Version:
TypeScript definitions for chai-subset
22 lines (18 loc) • 629 B
TypeScript
// Type definitions for chai-subset 1.3
// Project: https://github.com/debitoor/chai-subset
// Definitions by: Sam Noedel <https://github.com/delta62>, Andrew Brown <https://github.com/AGBrown>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
/// <reference types="chai" />
declare global {
namespace Chai {
interface Assertion {
containSubset(expected: any): Assertion;
}
interface Assert {
containSubset(val: any, exp: any, msg?: string): void;
}
}
}
declare const chaiSubset: Chai.ChaiPlugin;
export = chaiSubset;