Add definitions and tests for gulp-tsd

This commit is contained in:
Keita Kagurazaka
2015-03-04 06:25:34 +00:00
parent ab697a6bbd
commit 3492e30a63
2 changed files with 38 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
/// <reference path="./gulp-tsd.d.ts" />
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require("gulp");
import tsd = require("gulp-tsd");
gulp.task("tsd", () => {
gulp.src("gulp_tsd.json")
.pipe(tsd());
});
gulp.task("tsd:options", callback => {
tsd({
command: "reinstall",
config: "tsd.json"
}, callback);
});
+21
View File
@@ -0,0 +1,21 @@
// Type definitions for gulp-tsd
// Project: https://github.com/moznion/gulp-tsd
// Definitions by: Keita Kagurazaka <https://github.com/k-kagurazaka>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
/// <reference path="../gulp/gulp.d.ts" />
declare module "gulp-tsd" {
interface IOptions {
command?: string;
latest?: boolean;
config?: string;
opts?: Object;
}
function tsd(opts?: IOptions, callback?: gulp.ITaskCallback): NodeJS.ReadWriteStream;
export = tsd;
}