UNPKG

@types/gulp-rename

Version:
49 lines (39 loc) 1.47 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-rename/index.d.ts) ````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 * Last updated: Wed, 22 Nov 2023 00:24:48 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/vinyl](https://npmjs.com/package/@types/vinyl) # Credits These definitions were written by [Asana](https://asana.com).