mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add definitions and tests for gulp-tsd
This commit is contained in:
@@ -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);
|
||||
});
|
||||
Vendored
+21
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user