1 | // Type definitions for gulp-rename 2.0
|
2 | // Project: https://github.com/hparra/gulp-rename
|
3 | // Definitions by: Asana <https://asana.com>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /// <reference types="node"/>
|
7 | import * as File from 'vinyl';
|
8 |
|
9 | declare namespace rename {
|
10 | interface ParsedPath {
|
11 | dirname: string;
|
12 | basename: string;
|
13 | extname: string;
|
14 | }
|
15 |
|
16 | interface Options {
|
17 | dirname?: string;
|
18 | basename?: string;
|
19 | extname?: string;
|
20 | prefix?: string;
|
21 | suffix?: string;
|
22 | }
|
23 |
|
24 | interface PluginOptions {
|
25 | multiExt?: boolean;
|
26 | }
|
27 | }
|
28 |
|
29 | declare function rename(obj: string|rename.Options|((path: rename.ParsedPath, file: File) => rename.ParsedPath|void), options?: rename.PluginOptions): NodeJS.ReadWriteStream;
|
30 | export = rename;
|