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

2.0.6 • Public • Published

Installation

npm install --save @types/gulp-rename

Summary

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

Details

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

index.d.ts

/// <reference types="node"/>
import * as File from "vinyl";

declare namespace rename {
    interface ParsedPath {
        dirname: string;
        basename: string;
        extname: string;
    }

    interface Options {
        dirname?: string | undefined;
        basename?: string | undefined;
        extname?: string | undefined;
        prefix?: string | undefined;
        suffix?: string | undefined;
    }

    interface PluginOptions {
        multiExt?: boolean | undefined;
    }
}

declare function rename(
    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    obj: string | rename.Options | ((path: rename.ParsedPath, file: File) => rename.ParsedPath | void),
    options?: rename.PluginOptions,
): NodeJS.ReadWriteStream;
export = rename;

Additional Details

Credits

These definitions were written by Asana.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-rename

Weekly Downloads

41,869

Version

2.0.6

License

MIT

Unpacked Size

4.2 kB

Total Files

5

Last publish

Collaborators

  • types