UNPKG

1.61 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/gulp-rename`
3
4# Summary
5This package contains type definitions for gulp-rename (https://github.com/hparra/gulp-rename).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-rename.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-rename/index.d.ts)
10````ts
11// Type definitions for gulp-rename 2.0
12// Project: https://github.com/hparra/gulp-rename
13// Definitions by: Asana <https://asana.com>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
16/// <reference types="node"/>
17import * as File from 'vinyl';
18
19declare namespace rename {
20 interface ParsedPath {
21 dirname: string;
22 basename: string;
23 extname: string;
24 }
25
26 interface Options {
27 dirname?: string | undefined;
28 basename?: string | undefined;
29 extname?: string | undefined;
30 prefix?: string | undefined;
31 suffix?: string | undefined;
32 }
33
34 interface PluginOptions {
35 multiExt?: boolean | undefined;
36 }
37}
38
39declare function rename(obj: string|rename.Options|((path: rename.ParsedPath, file: File) => rename.ParsedPath|void), options?: rename.PluginOptions): NodeJS.ReadWriteStream;
40export = rename;
41
42````
43
44### Additional Details
45 * Last updated: Tue, 06 Jul 2021 20:33:10 GMT
46 * Dependencies: [@types/vinyl](https://npmjs.com/package/@types/vinyl), [@types/node](https://npmjs.com/package/@types/node)
47 * Global values: none
48
49# Credits
50These definitions were written by [Asana](https://asana.com).
51
\No newline at end of file