DefinitelyTyped/types/matchdep/index.d.ts
Tomasz Pluskiewicz ea2c63dc94
matchdep (#43094)
2020-03-27 13:30:17 -04:00

19 lines
619 B
TypeScript

// Type definitions for matchdep 2.0
// Project: https://github.com/tkellen/js-matchdep
// Definitions by: tpluscode <https://github.com/tpluscode>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace matchdep {
type FilterConfig = string | object;
type FilterFunction = (pattern: string | string[], config?: FilterConfig) => string[];
}
declare const matchdep: {
readonly filter: matchdep.FilterFunction
readonly filterDev: matchdep.FilterFunction
readonly filterPeer: matchdep.FilterFunction
readonly filterAll: matchdep.FilterFunction
};
export = matchdep;