Skip to content

Commit

Permalink
Fix gulp.dest overload parameter type to be Vinyl File (DefinitelyTyp…
Browse files Browse the repository at this point in the history
…ed#10825)

* Fix gulp.dest overload parameter type to be Vinyl File

* Change Vinyl version to match Gulp

* Revert changing Vinyl version, due to conflicts with gulp plugins
  • Loading branch information
schmuli authored and vvakame committed Sep 7, 2016
1 parent 14c74ee commit d219a83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulp/gulp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

/// <reference path="../node/node.d.ts" />
/// <reference path="../orchestrator/orchestrator.d.ts" />
/// <reference path="../vinyl/vinyl.d.ts" />

declare module "gulp" {
import Orchestrator = require("orchestrator");
import VinylFile = require("vinyl");

namespace gulp {
interface Gulp extends Orchestrator {
Expand Down Expand Up @@ -92,7 +94,7 @@ declare module "gulp" {
* @param outFolder The path (output folder) to write files to. Or a function that returns it, the function will be provided a vinyl File instance.
* @param opt
*/
(outFolder: string|((file: string) => string), opt?: DestOptions): NodeJS.ReadWriteStream;
(outFolder: string|((file: VinylFile) => string), opt?: DestOptions): NodeJS.ReadWriteStream;
}

interface SrcMethod {
Expand Down Expand Up @@ -149,7 +151,7 @@ declare module "gulp" {
* Note that an explicit dot in a portion of the pattern will always match dot files.
*/
dot?: boolean;

/**
* Set to match only fles, not directories. Set this flag to prevent copying empty directories
*/
Expand Down

0 comments on commit d219a83

Please sign in to comment.