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 |
|
6 | declare namespace matchdep {
|
7 | type FilterConfig = string | object;
|
8 | type FilterFunction = (pattern: string | string[], config?: FilterConfig) => string[];
|
9 | }
|
10 |
|
11 | declare const matchdep: {
|
12 | readonly filter: matchdep.FilterFunction
|
13 | readonly filterDev: matchdep.FilterFunction
|
14 | readonly filterPeer: matchdep.FilterFunction
|
15 | readonly filterAll: matchdep.FilterFunction
|
16 | };
|
17 |
|
18 | export = matchdep;
|