0.0.39 • Published 6 months ago
@types/gulp-changed v0.0.39
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
// Type definitions for gulp-changed
// Project: https://github.com/sindresorhus/gulp-changed
// Definitions by: Thomas Corbière <https://github.com/tomc974>, Jordy van Dortmont <https://github.com/jordyvandortmont>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Sun, 09 Jan 2022 20:31:39 GMT
- Dependencies: @types/vinyl, @types/node
- Global values: none
Credits
These definitions were written by Thomas Corbière, and Jordy van Dortmont.
0.0.37
8 months ago
0.0.38
7 months ago
0.0.39
6 months ago
0.0.36
1 year ago
0.0.35
2 years ago
0.0.34
3 years ago
0.0.33
5 years ago
0.0.32
7 years ago
0.0.31
7 years ago
0.0.30
8 years ago
0.0.29
8 years ago
0.0.28-alpha
8 years ago
0.0.26-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.16-alpha
8 years ago
0.0.15-alpha
8 years ago