mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* Add typings for lodash-match-pattern * Add typings for chai-match-pattern --------- Co-authored-by: Daniel Kneip <daniel.kneip@pagnos.com>
24 lines
680 B
TypeScript
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;
|