Skip to content

Commit

Permalink
Fix gulp-babel.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AyaMorisawa committed Nov 26, 2015
1 parent 98b4177 commit 1e9df33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gulp-babel/gulp-babel-tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="../node/node.d.ts" />
/// <reference path="./gulp-babel.d.ts" />

import babel from 'gulp-babel';
import babel = require('gulp-babel');

var x: NodeJS.ReadWriteStream = babel();
var x: NodeJS.ReadWriteStream = babel({});
4 changes: 3 additions & 1 deletion gulp-babel/gulp-babel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/// <reference path="../node/node.d.ts" />

declare module 'gulp-babel' {
export default function(options?: {
function babel(options?: {
filename?: string,
filenameRelative?: string,
presets?: string[],
Expand Down Expand Up @@ -35,4 +35,6 @@ declare module 'gulp-babel' {
env?: any,
retainLines?: boolean
}): NodeJS.ReadWriteStream;

export = babel;
}

0 comments on commit 1e9df33

Please sign in to comment.