@types/gulp-rename
Version:
TypeScript definitions for gulp-rename
51 lines (40 loc) • 1.61 kB
Markdown
# 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
// Type definitions for gulp-rename 2.0
// Project: https://github.com/hparra/gulp-rename
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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(obj: string|rename.Options|((path: rename.ParsedPath, file: File) => rename.ParsedPath|void), options?: rename.PluginOptions): NodeJS.ReadWriteStream;
export = rename;
````
### Additional Details
* Last updated: Tue, 06 Jul 2021 20:33:10 GMT
* Dependencies: [@types/vinyl](https://npmjs.com/package/@types/vinyl), [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by [Asana](https://asana.com).