Nutrias Punching Marmots

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

    1.1.1 • 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

    // 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.

    Keywords

    none

    Install

    npm i @types/chai-like

    DownloadsWeekly Downloads

    6,653

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    4.33 kB

    Total Files

    4

    Last publish

    Collaborators

    • types