# @types/gulp-match

> TypeScript definitions for gulp-match

Latest version **1.1.6** (published 2025-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/gulp-match
pnpm add @types/gulp-match
yarn add @types/gulp-match
bun add @types/gulp-match
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2025-07-01 |
| First published | 2023-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/gulp-match
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-match
- npm.io page: https://npm.io/package/@types/gulp-match

## Dependencies (2)

- [@types/vinyl](https://npm.io/package/@types/vinyl.md) *
- [@types/minimatch](https://npm.io/package/@types/minimatch.md) <=5

## Recent versions

- 1.1.6 (latest) — 2025-07-01
- 1.1.5 (ts4.5) — 2023-11-07
- 1.1.2 (ts4.2) — 2023-01-27
- 1.1.4 — 2023-10-18
- 1.1.3 — 2023-09-20
- 1.1.1 — 2023-01-20
- 1.1.0 — 2023-01-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-match/index.d.ts)
````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, 01 Jul 2025 21:02:17 GMT
 * Dependencies: [@types/minimatch](https://npmjs.com/package/@types/minimatch), [@types/vinyl](https://npmjs.com/package/@types/vinyl)

# Credits
These definitions were written by [Christophe Coevoet](https://github.com/stof).

---
_Source: https://npm.io/package/@types/gulp-match · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
