@types/gulp-remember
TypeScript icon, indicating that this package has built-in type declarations

0.0.35 • Public • Published

Installation

npm install --save @types/gulp-remember

Summary

This package contains type definitions for gulp-remember (https://github.com/ahaurw01/gulp-remember).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-remember.

index.d.ts

/// <reference types="node"/>

interface ICache {
    [path: string]: NodeJS.ReadWriteStream;
}

interface IGulpRemember {
    /**
     * Return a through stream that will:
     *   1. Remember all files that ever pass through it.
     *   2. Add all remembered files back into the stream when not present.
     * @param cacheName Name to give your cache
     */
    (cacheName?: string): NodeJS.ReadWriteStream;

    /**
     * Forget about a file.
     * A warning is logged if either the named cache or file do not exist.
     * @param path Path of the file to forget
     */
    forget(path: string): void;

    /**
     * Forget about a file.
     * A warning is logged if either the named cache or file do not exist.
     * @param cacheName Name of the cache from which to drop the file
     * @param path Path of the file to forget
     */
    forget(cacheName: string, path: string): void;

    /**
     * Forget all files in one cache.
     * A warning is logged if the cache does not exist.
     *
     * @param cacheName Name of the cache to wipe
     */
    forgetAll(cacheName?: string): void;

    /**
     * Return a raw cache by name.
     * Useful for checking state. Manually adding or removing files is NOT recommended.
     *
     * @param cacheName Name of the cache to retrieve
     */
    cacheFor(cacheName?: string): ICache;
}

declare const remember: IGulpRemember;
export = remember;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Thomas Corbière.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-remember

Weekly Downloads

1,592

Version

0.0.35

License

MIT

Unpacked Size

5.48 kB

Total Files

5

Last publish

Collaborators

  • types