Installation
npm install --save @types/gulp-match
Summary
This package contains type definitions for gulp-match (https://github.com/robrich/gulp-match).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-match.
index.d.ts
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;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/minimatch, @types/vinyl
Credits
These definitions were written by Christophe Coevoet.