npm install --save @types/gulp-match
This package contains type definitions for gulp-match (https://github.com/robrich/gulp-match).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-match.
import vinyl = require("vinyl");
import minimatch = require("minimatch");
interface StatFilterCondition {
isDirectory?: boolean | undefined;
isFile?: boolean | undefined;
}
/**
* Does a vinyl file match a condition? This function checks the condition on the file.path of the vinyl-fs file passed to it.
*
* Condition can be a boolean, a function, a regular expression, a glob string (or array of glob strings), or a stat filter object.
*/
declare function gulpMatch(file: vinyl, condition: gulpMatch.MatchCondition, options?: minimatch.IOptions): boolean;
declare namespace gulpMatch {
type MatchCondition = boolean | ((fs: vinyl) => boolean) | RegExp | string | string[] | StatFilterCondition;
}
export = gulpMatch;
- Last updated: Tue, 01 Jul 2025 21:02:17 GMT
- Dependencies: @types/minimatch, @types/vinyl
These definitions were written by Christophe Coevoet.