Files
Daniel Kneip 4e99c4c87d 🤖 Merge PR #65898 Add typings for chai-match-pattern by @daedal-knickerbockers
* Add typings for lodash-match-pattern

* Add typings for chai-match-pattern

---------

Co-authored-by: Daniel Kneip <daniel.kneip@pagnos.com>
2023-06-28 13:33:28 -07:00

24 lines
680 B
TypeScript

// Type definitions for chai-match-pattern 1.3
// Project: https://github.com/mjhm/chai-match-pattern#readme
// Definitions by: Daniel Kneip <https://github.com/daedal-knickerbockers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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;