UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

32 lines (25 loc) 843 B
// Type definitions for gulp-rename // Project: https://github.com/hparra/gulp-rename // Definitions by: Asana <https://asana.com> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference path="../node/node.d.ts"/> declare module "gulp-rename" { interface ParsedPath { dirname?: string; basename?: string; extname?: string; } interface Options extends ParsedPath { prefix?: string; suffix?: string; } function rename(name: string): NodeJS.ReadWriteStream; function rename(callback: (path: ParsedPath) => any): NodeJS.ReadWriteStream; function rename(opts: Options): NodeJS.ReadWriteStream; /** * This is required as per: * https://github.com/Microsoft/TypeScript/issues/5073 */ namespace rename {} export = rename; }