Installation
npm install --save @types/chai-like
Summary
This package contains type definitions for chai-like (https://github.com/zation/chai-like).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-like.
declare global {
namespace Chai {
interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
like(expected: any): void;
}
}
}
declare namespace ChaiLike {
interface Plugin {
match(object: any, expected: any): boolean;
assert(object: any, expected: any): boolean;
}
interface ChaiLike extends Chai.ChaiPlugin {
extend(plugin: Plugin): void;
clearPlugins(): void;
}
}
declare const chaiLike: ChaiLike.ChaiLike;
export = chaiLike;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/chai
Credits
These definitions were written by Chayim Refael Friedman.