UNPKG

619 BTypeScriptView Raw
1// Type definitions for matchdep 2.0
2// Project: https://github.com/tkellen/js-matchdep
3// Definitions by: tpluscode <https://github.com/tpluscode>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6declare namespace matchdep {
7 type FilterConfig = string | object;
8 type FilterFunction = (pattern: string | string[], config?: FilterConfig) => string[];
9}
10
11declare const matchdep: {
12 readonly filter: matchdep.FilterFunction
13 readonly filterDev: matchdep.FilterFunction
14 readonly filterPeer: matchdep.FilterFunction
15 readonly filterAll: matchdep.FilterFunction
16};
17
18export = matchdep;