UNPKG

893 BTypeScriptView Raw
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"/>
7import * as File from 'vinyl';
8
9declare namespace rename {
10 interface ParsedPath {
11 dirname: string;
12 basename: string;
13 extname: string;
14 }
15
16 interface Options {
17 dirname?: string | undefined;
18 basename?: string | undefined;
19 extname?: string | undefined;
20 prefix?: string | undefined;
21 suffix?: string | undefined;
22 }
23
24 interface PluginOptions {
25 multiExt?: boolean | undefined;
26 }
27}
28
29declare function rename(obj: string|rename.Options|((path: rename.ParsedPath, file: File) => rename.ParsedPath|void), options?: rename.PluginOptions): NodeJS.ReadWriteStream;
30export = rename;