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

1.3.3 • Public • Published

Installation

npm install --save @types/chai-match-pattern

Summary

This package contains type definitions for chai-match-pattern (https://github.com/mjhm/chai-match-pattern#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-match-pattern.

index.d.ts

/// <reference types="chai" />

import * as matchPattern from "lodash-match-pattern";

declare global {
    namespace Chai {
        interface Assertion {
            matchPattern(pattern: string | object): Assertion;
        }
    }
}

declare const chaiMatchPattern: Chai.ChaiPlugin & {
    getLodashModule: typeof matchPattern.getLodashModule;
    use(lodashModule: typeof matchPattern): void;
};

export = chaiMatchPattern;

Additional Details

Credits

These definitions were written by Daniel Kneip.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chai-match-pattern

Weekly Downloads

4,997

Version

1.3.3

License

MIT

Unpacked Size

3.72 kB

Total Files

5

Last publish

Collaborators

  • types