# @types/gulp-changed

> TypeScript definitions for gulp-changed

Latest version **0.0.39** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.39 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/vinyl](https://npm.io/package/@types/vinyl.md) *

## Recent versions

- 0.0.39 (latest) — 2023-11-07
- 0.0.36 (ts4.3) — 2023-05-10
- 0.0.35 (ts3.8) — 2022-01-09
- 0.0.34 (ts3.6) — 2021-07-08
- 0.0.33 (ts2.0) — 2019-08-21
- 0.0.38 — 2023-10-18
- 0.0.37 — 2023-09-20
- 0.0.32 — 2017-11-08
- 0.0.31 — 2017-03-16
- 0.0.30 — 2016-09-19
- 0.0.29 — 2016-07-14
- 0.0.28-alpha — 2016-07-08
- 0.0.26-alpha — 2016-07-04
- 0.0.25-alpha — 2016-07-02
- 0.0.24-alpha — 2016-07-01
- … 5 more at https://npm.io/package/@types/gulp-changed/versions

## README

# Installation
> `npm install --save @types/gulp-changed`

# Summary
This package contains type definitions for gulp-changed (https://github.com/sindresorhus/gulp-changed).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-changed.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-changed/index.d.ts)
````ts
/// <reference types="node"/>
/// <reference types="vinyl" />

import { Transform } from "stream";
import File = require("vinyl");

interface IComparator {
    /**
     * @param stream Should be used to queue sourceFile if it passes some comparison
     * @param sourceFile File to operate on
     * @param destPath Destination for sourceFile as an absolute path
     */
    (stream: Transform, sourceFile: File, destPath: string): void;
}

interface IDestination {
    (file: string | Buffer): string;
}

interface IOptions {
    /**
     * The working directory the folder is relative to.
     * @default process.cwd()
     */
    cwd?: string | undefined;

    /**
     * Extension of the destination files.
     */
    extension?: string | undefined;

    /**
     * Function that determines whether the source file is different from the destination file.
     * @default changed.compareLastModifiedTime
     */
    hasChanged?: IComparator | undefined;

    /**
     * Function to transform the path to the destination file. Should return the absolute path to the (renamed) destination file.
     */
    transformPath?: ((destPath: string) => string) | undefined;
}

interface IGulpChanged {
    (destination: string | IDestination, options?: IOptions): NodeJS.ReadWriteStream;

    compareLastModifiedTime: IComparator;
    compareContents: IComparator;
}

declare const changed: IGulpChanged;
export = changed;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/vinyl](https://npmjs.com/package/@types/vinyl)

# Credits
These definitions were written by [Thomas Corbière](https://github.com/tomc974), and [Jordy van Dortmont](https://github.com/jordyvandortmont).

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