Skip to content

Commit 0da5415

Browse files
committed
Remove errors from the gulpfile
1 parent 5d09688 commit 0da5415

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Gulpfile.js

+2
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ task("run-eslint-rules-tests").description = "Runs the eslint rule tests";
333333

334334
const lintFoldStart = async () => { if (fold.isTravis()) console.log(fold.start("lint")); };
335335
const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lint")); };
336+
337+
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
336338
const eslint = (folder) => async () => {
337339
const ESLINTRC_CI = ".eslintrc.ci.json";
338340
const isCIEnv = cmdLineOptions.ci || process.env.CI === "true";

scripts/types/ambient.d.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,15 @@ declare module "undertaker" {
7676
interface TaskFunctionParams {
7777
flags?: Record<string, string>;
7878
}
79+
interface TaskFunctionWrapped {
80+
description: string
81+
flags: { [name: string]: string }
82+
}
7983
}
8084

8185
declare module "gulp-sourcemaps" {
8286
interface WriteOptions {
8387
destPath?: string;
8488
}
85-
}
89+
90+
}

0 commit comments

Comments
 (0)