npm.io
2.3.5 • Published 11 months ago

@types/lodash-match-pattern

Licence
MIT
Version
2.3.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

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

Summary

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

Details

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

index.d.ts

import _ = require("lodash");

declare module "lodash" {
    interface LoDashStatic {
        isDateString(s: any): boolean;
        isSize(s: any, n: any): boolean;
        isOmitted: any;
        isDefined(s: any): boolean;
        isPrinted(s: any, label: any): boolean;
        filterPattern(s: any, pattern: any): any;
        setMemo(s: any, key: any): any;
        isSetAsMemo(s: any, key: any): boolean;
        getMemoHash(): {};
        isEqualToMemo(s: any, key: any): any;
        isNotEqualToMemo(s: any, key: any): boolean;
        clearMemos(s: any): any;
        extractUrls(s: any): any;
    }
}

declare function matchPattern(sourceData: any, targetPattern: object | string): string | null;
declare namespace matchPattern {
    function use(newLodashModule: _.LoDashStatic): void;
    function getLodashModule(): _.LoDashStatic;
}

export = matchPattern;

Additional Details

  • Last updated: Fri, 24 Oct 2025 0441 GMT
  • Dependencies: @types/lodash

Credits

These definitions were written by Daniel Kneip.