Installation
npm install --save @types/chai-roughly
Summary
This package contains type definitions for chai-roughly (https://github.com/Turbo87/chai-roughly#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-roughly.
index.d.ts
/// <reference types="chai" />
declare global {
namespace Chai {
// For BDD APIs
interface Roughly extends Assertion {
(tolerance?: number): Assertion;
}
interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
roughly: Roughly;
}
// For Assert APIs
interface Assert {
roughly: Roughly;
}
}
}
declare const chaiRoughly: Chai.ChaiPlugin;
declare namespace chaiRoughly {}
export = chaiRoughly;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/chai
Credits
These definitions were written by Tomasz Nguyen.