diff --git a/gulp-jshint/gulp-jshint.d.ts b/gulp-jshint/gulp-jshint.d.ts index 8c10fe0de..20db40a62 100644 --- a/gulp-jshint/gulp-jshint.d.ts +++ b/gulp-jshint/gulp-jshint.d.ts @@ -23,7 +23,7 @@ declare module "gulp-jshint" { } namespace GulpJSHint { - function reporter(kind: (string | Object)); + function reporter(kind: (string | Object)): NodeJS.ReadWriteStream; } export = GulpJSHint; } diff --git a/gulp-notify/gulp-notify.d.ts b/gulp-notify/gulp-notify.d.ts index 34b752065..96b11f95d 100644 --- a/gulp-notify/gulp-notify.d.ts +++ b/gulp-notify/gulp-notify.d.ts @@ -88,7 +88,7 @@ declare module "gulp-notify" { /** * The exact same API as using notify(), but where a vinyl File is passed, the error object is passed instead. */ - function onError(param: string | (error: Error): string | GulpNotifyOptions): NodeJS.ReadWriteStream; + function onError(param: string | { (error: Error): string } | GulpNotifyOptions): NodeJS.ReadWriteStream; /** * Type: Integer Default: 2