@types/chai-like
@types/chai-like
npm i @types/chai-like
@types/chai-like

@types/chai-like

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

1.1.1 (see all)License:MITTypeScript:Built-In
npm i @types/chai-like
Readme

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.

Downloads/wk

7.7K

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

201
VersionTagPublished
1.1.1
latest
1yr ago
1.1.1
ts4.7
1yr ago
1.1.1
ts4.6
1yr ago
1.1.1
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate