Skip to content

Commit 8ebdfb3

Browse files
committed
Including a comment explaning the weird 'undefined as any' lines.
1 parent daae774 commit 8ebdfb3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core-build/gulp-core-build/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ const packageFolder: string = (builtPackage.directories && builtPackage.director
5353
: '';
5454

5555
let _buildConfig: IBuildConfig = {
56+
// gulp and rootPath are set to undefined here because they'll be defined in the initialize function below,
57+
// but we don't want their types to be nullable because a task that uses StrictNullChecks should expect them
58+
// to be defined without checking their values.
5659
gulp: undefined as any, // tslint:disable-line:no-any
5760
rootPath: undefined as any, // tslint:disable-line:no-any
5861
packageFolder,

0 commit comments

Comments
 (0)