1 |
|
2 | import * as File from "vinyl";
|
3 |
|
4 | declare namespace rename {
|
5 | interface ParsedPath {
|
6 | dirname: string;
|
7 | basename: string;
|
8 | extname: string;
|
9 | }
|
10 |
|
11 | interface Options {
|
12 | dirname?: string | undefined;
|
13 | basename?: string | undefined;
|
14 | extname?: string | undefined;
|
15 | prefix?: string | undefined;
|
16 | suffix?: string | undefined;
|
17 | }
|
18 |
|
19 | interface PluginOptions {
|
20 | multiExt?: boolean | undefined;
|
21 | }
|
22 | }
|
23 |
|
24 | declare function rename(
|
25 |
|
26 | obj: string | rename.Options | ((path: rename.ParsedPath, file: File) => rename.ParsedPath | void),
|
27 | options?: rename.PluginOptions,
|
28 | ): NodeJS.ReadWriteStream;
|
29 | export = rename;
|