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

1.1.5 • Public • Published

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

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/vinyl-named

Weekly Downloads

291

Version

1.1.5

License

MIT

Unpacked Size

3.52 kB

Total Files

5

Last publish

Collaborators

  • types