Add gulp-babel.d.ts

This commit is contained in:
Aya Morisawa 2015-11-22 20:47:52 +09:00
parent 0ea013a775
commit ba131000c0
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,7 @@
/// <reference path="../node/node.d.ts" />
/// <reference path="./gulp-babel.d.ts" />
import babel from 'gulp-babel';
var x: NodeJS.ReadWriteStream = babel();
var x: NodeJS.ReadWriteStream = babel({});

38
gulp-babel/gulp-babel.d.ts vendored Normal file
View File

@ -0,0 +1,38 @@
// Type definitions for gulp-babel 6.1.0
// Project: https://github.com/babel/gulp-babel
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module 'gulp-babel' {
export default function(options?: {
filename?: string,
filenameRelative?: string,
presets?: string[],
plugins?: string[],
highlightCode?: boolean,
only?: string | string[],
ignore?: string | string[],
auxiliaryCommentBefore?: any,
auxiliaryCommentAfter?: any,
sourceMaps?: any,
inputSourceMap?: any,
sourceMapTarget?: any,
sourceFileName?: any,
sourceRoot?: any,
moduleRoot?: any,
moduleIds?: any,
moduleId?: any,
getModuleId?: any,
resolveModuleSource?: any,
keepModuleIdExtesions?: boolean,
code?: boolean,
ast?: boolean,
compact?: any,
comments?: boolean,
shouldPrintComment?: any,
env?: any,
retainLines?: boolean
}): NodeJS.ReadWriteStream;
}