mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Change interface name (remove the first letter 'I')
This commit is contained in:
4
gulp-protractor/gulp-protractor.d.ts
vendored
4
gulp-protractor/gulp-protractor.d.ts
vendored
@@ -18,8 +18,8 @@ declare module 'gulp-protractor' {
|
||||
interface IGulpProtractor {
|
||||
getProtractorDir(): string;
|
||||
protractor(options?: IOptions): NodeJS.ReadWriteStream;
|
||||
webdriver_standalone: gulp.ITaskCallback;
|
||||
webdriver_update: gulp.ITaskCallback;
|
||||
webdriver_standalone: gulp.TaskCallback;
|
||||
webdriver_update: gulp.TaskCallback;
|
||||
}
|
||||
|
||||
var protractor: IGulpProtractor;
|
||||
|
||||
2
gulp-tsd/gulp-tsd.d.ts
vendored
2
gulp-tsd/gulp-tsd.d.ts
vendored
@@ -16,7 +16,7 @@ declare module "gulp-tsd" {
|
||||
opts?: Object;
|
||||
}
|
||||
|
||||
function tsd(opts?: IOptions, callback?: gulp.ITaskCallback): NodeJS.ReadWriteStream;
|
||||
function tsd(opts?: IOptions, callback?: gulp.TaskCallback): NodeJS.ReadWriteStream;
|
||||
|
||||
export = tsd;
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
import gulp = require("gulp");
|
||||
import browserSync = require("browser-sync");
|
||||
|
||||
var typescript: gulp.IGulpPlugin = null; // this would be the TypeScript compiler
|
||||
var jasmine: gulp.IGulpPlugin = null; // this would be the jasmine test runner
|
||||
var typescript: gulp.GulpPlugin = null; // this would be the TypeScript compiler
|
||||
var jasmine: gulp.GulpPlugin = null; // this would be the jasmine test runner
|
||||
|
||||
gulp.task('compile', function()
|
||||
{
|
||||
|
||||
30
gulp/gulp.d.ts
vendored
30
gulp/gulp.d.ts
vendored
@@ -46,7 +46,7 @@ declare module "gulp" {
|
||||
watch: WatchMethod;
|
||||
}
|
||||
|
||||
interface IGulpPlugin {
|
||||
interface GulpPlugin {
|
||||
(...args: any[]): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
@@ -57,14 +57,14 @@ declare module "gulp" {
|
||||
* @param glob a single glob or array of globs that indicate which files to watch for changes.
|
||||
* @param fn a callback or array of callbacks to be called on each change, or names of task(s) to run when a file changes, added with task().
|
||||
*/
|
||||
(glob: string|string[], fn: (IWatchCallback|string)): NodeJS.EventEmitter;
|
||||
(glob: string|string[], fn: (WatchCallback|string)): NodeJS.EventEmitter;
|
||||
/**
|
||||
* Watch files and do something when a file changes. This always returns an EventEmitter that emits change events.
|
||||
*
|
||||
* @param glob a single glob or array of globs that indicate which files to watch for changes.
|
||||
* @param fn a callback or array of callbacks to be called on each change, or names of task(s) to run when a file changes, added with task().
|
||||
*/
|
||||
(glob: string|string[], fn: (IWatchCallback|string)[]): NodeJS.EventEmitter;
|
||||
(glob: string|string[], fn: (WatchCallback|string)[]): NodeJS.EventEmitter;
|
||||
/**
|
||||
* Watch files and do something when a file changes. This always returns an EventEmitter that emits change events.
|
||||
*
|
||||
@@ -72,7 +72,7 @@ declare module "gulp" {
|
||||
* @param opt options, that are passed to the gaze library.
|
||||
* @param fn a callback or array of callbacks to be called on each change, or names of task(s) to run when a file changes, added with task().
|
||||
*/
|
||||
(glob: string|string[], opt: IWatchOptions, fn: (IWatchCallback|string)): NodeJS.EventEmitter;
|
||||
(glob: string|string[], opt: WatchOptions, fn: (WatchCallback|string)): NodeJS.EventEmitter;
|
||||
/**
|
||||
* Watch files and do something when a file changes. This always returns an EventEmitter that emits change events.
|
||||
*
|
||||
@@ -80,7 +80,7 @@ declare module "gulp" {
|
||||
* @param opt options, that are passed to the gaze library.
|
||||
* @param fn a callback or array of callbacks to be called on each change, or names of task(s) to run when a file changes, added with task().
|
||||
*/
|
||||
(glob: string|string[], opt: IWatchOptions, fn: (IWatchCallback|string)[]): NodeJS.EventEmitter;
|
||||
(glob: string|string[], opt: WatchOptions, fn: (WatchCallback|string)[]): NodeJS.EventEmitter;
|
||||
|
||||
}
|
||||
|
||||
@@ -92,7 +92,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?: IDestOptions): NodeJS.ReadWriteStream;
|
||||
(outFolder: string|((file: string) => string), opt?: DestOptions): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
interface SrcMethod {
|
||||
@@ -101,7 +101,7 @@ declare module "gulp" {
|
||||
* @param glob Glob or array of globs to read.
|
||||
* @param opt Options to pass to node-glob through glob-stream.
|
||||
*/
|
||||
(glob: string|string[], opt?: ISrcOptions): NodeJS.ReadWriteStream;
|
||||
(glob: string|string[], opt?: SrcOptions): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -109,7 +109,7 @@ declare module "gulp" {
|
||||
* Specifies two options in addition to those used by node-glob:
|
||||
* https://github.com/isaacs/node-glob#options
|
||||
*/
|
||||
interface ISrcOptions {
|
||||
interface SrcOptions {
|
||||
/**
|
||||
* Setting this to <code>false</code> will return <code>file.contents</code> as <code>null</code>
|
||||
* and not read the file at all.
|
||||
@@ -231,7 +231,7 @@ declare module "gulp" {
|
||||
globDebug?: boolean;
|
||||
}
|
||||
|
||||
interface IDestOptions {
|
||||
interface DestOptions {
|
||||
/**
|
||||
* The output folder. Only has an effect if provided output folder is relative.
|
||||
* Default: process.cwd()
|
||||
@@ -249,7 +249,7 @@ declare module "gulp" {
|
||||
* Options that are passed to <code>gaze</code>.
|
||||
* https://github.com/shama/gaze
|
||||
*/
|
||||
interface IWatchOptions {
|
||||
interface WatchOptions {
|
||||
/** Interval to pass to fs.watchFile. */
|
||||
interval?: number;
|
||||
/** Delay for events called in succession for the same file/event. */
|
||||
@@ -260,7 +260,7 @@ declare module "gulp" {
|
||||
cwd?: string;
|
||||
}
|
||||
|
||||
interface IWatchEvent {
|
||||
interface WatchEvent {
|
||||
/** The type of change that occurred, either added, changed or deleted. */
|
||||
type: string;
|
||||
/** The path to the file that triggered the event. */
|
||||
@@ -270,17 +270,17 @@ declare module "gulp" {
|
||||
/**
|
||||
* Callback to be called on each watched file change.
|
||||
*/
|
||||
interface IWatchCallback {
|
||||
(event:IWatchEvent): void;
|
||||
interface WatchCallback {
|
||||
(event: WatchEvent): void;
|
||||
}
|
||||
|
||||
interface ITaskCallback {
|
||||
interface TaskCallback {
|
||||
/**
|
||||
* Defines a task.
|
||||
* Tasks may be made asynchronous if they are passing a callback or return a promise or a stream.
|
||||
* @param cb callback used to signal asynchronous completion. Caller includes <code>err</code> in case of error.
|
||||
*/
|
||||
(cb?:(err?:any)=>void): any;
|
||||
(cb?: (err?: any) => void): any;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
run-sequence/run-sequence.d.ts
vendored
2
run-sequence/run-sequence.d.ts
vendored
@@ -10,7 +10,7 @@ declare module "run-sequence" {
|
||||
import gulp = require('gulp');
|
||||
|
||||
interface IRunSequence {
|
||||
(...streams: (string | string[] | gulp.ITaskCallback)[]): NodeJS.ReadWriteStream;
|
||||
(...streams: (string | string[] | gulp.TaskCallback)[]): NodeJS.ReadWriteStream;
|
||||
|
||||
use(gulp: gulp.Gulp): IRunSequence;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user