@types/chai-like
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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

/// <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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/chai

Credits

These definitions were written by Chayim Refael Friedman.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chai-like

Weekly Downloads

14,632

Version

1.1.3

License

MIT

Unpacked Size

3.79 kB

Total Files

5

Last publish

Collaborators

  • types