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
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/chai, @types/lodash-match-pattern
Credits
These definitions were written by Daniel Kneip.