Installation
npm install --save @types/vinyl-named
Summary
This package contains type definitions for vinyl-named (https://github.com/shama/vinyl-named).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vinyl-named.
index.d.ts
import File = require("vinyl");
import Through = require("through");
type Callback = (
this: Through.ThroughStream,
/** A vinyl file object */
file: File & { named: string },
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
) => string | null | undefined | void;
/**
* Give vinyl files arbitrary chunk names.
*
* @param opt A callback that returns a name of the given file
*/
declare function named(opt?: Callback): Through.ThroughStream;
export = named;
Additional Details
- Last updated: Wed, 22 Nov 2023 00:24:48 GMT
- Dependencies: @types/through, @types/vinyl
Credits
These definitions were written by .