From 8c215b7ee437b89593e230277eb861d0be1eb141 Mon Sep 17 00:00:00 2001 From: Joe Skeen Date: Thu, 24 Sep 2015 15:53:19 -0600 Subject: [PATCH] Function type for callback --- gulp-task-listing/gulp-task-listing.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulp-task-listing/gulp-task-listing.d.ts b/gulp-task-listing/gulp-task-listing.d.ts index 022a0118b..8409f4b80 100644 --- a/gulp-task-listing/gulp-task-listing.d.ts +++ b/gulp-task-listing/gulp-task-listing.d.ts @@ -22,14 +22,14 @@ declare module 'gulp-task-listing' { * subtask, as well as filter out tasks you don't want to see in the output. */ interface GulpTaskListing { - (cb): void; + (cb: Function): void; /** * Allows for custom filtering of Gulp tasks in the listing * * @param subTaskFilter a RegExp or Function returning whether the given task is a subtask * @param excludeFilter a RegExp or Function returning whether the given task should be excluded from the listing */ - withFilters(subTaskFilter: RegExp | FilterFunction, excludeFilter?: RegExp | FilterFunction): (cb) => void; + withFilters(subTaskFilter: RegExp | FilterFunction, excludeFilter?: RegExp | FilterFunction): (cb: Function) => void; } type FilterFunction = (task: string) => boolean;