1.1.3 • Published 7 months ago
@types/chai-like v1.1.3
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.
index.d.ts
// Type definitions for chai-like 1.1
// Project: https://github.com/zation/chai-like
// Definitions by: Chayim Refael Friedman <https://github.com/ChayimFriedman2>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
/// <reference types="chai" />
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: Thu, 08 Jul 2021 22:41:03 GMT
- Dependencies: @types/chai
- Global values: none
Credits
These definitions were written by Chayim Refael Friedman.