Skip to content

Commit b3f85e5

Browse files
committed
Add explicit any typings for this
Prep to compile build in strict mode
1 parent a4b375a commit b3f85e5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

build/lib/asar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function createAsar(folderPath: string, unpackGlobs: string[], destFilena
6464
filesystem.insertFile(relativePath, shouldUnpack, { stat: stat }, {}, onFileInserted);
6565
};
6666

67-
return es.through(function (file) {
67+
return es.through(function (this: any, file) {
6868
if (file.stat.isDirectory()) {
6969
return;
7070
}
@@ -88,7 +88,7 @@ export function createAsar(folderPath: string, unpackGlobs: string[], destFilena
8888
// The file goes inside of xx.asar
8989
out.push(file.contents);
9090
}
91-
}, function () {
91+
}, function (this: any) {
9292

9393
let finish = () => {
9494
{

build/lib/compilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function monacodtsTask(out: string, isWatch: boolean): NodeJS.ReadWriteStream {
175175
}));
176176
}
177177

178-
resultStream = es.through(function (data) {
178+
resultStream = es.through(function (this: any, data) {
179179
const filePath = path.normalize(path.resolve(basePath, data.relative));
180180
if (neededFiles[filePath]) {
181181
setInputFile(filePath, data.contents.toString());

build/lib/extensions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ function fromLocalWebpack(extensionPath: string, sourceMappingURLBase: string |
110110
let relativeOutputPath = path.relative(extensionPath, webpackConfig.output.path);
111111

112112
return webpackGulp(webpackConfig, webpack, webpackDone)
113-
.pipe(es.through(function (data) {
113+
.pipe(es.through(function (this: any, data) {
114114
data.stat = data.stat || {};
115115
data.base = extensionPath;
116116
this.emit('data', data);
117117
}))
118-
.pipe(es.through(function (data: File) {
118+
.pipe(es.through(function (this: any, data: File) {
119119
// source map handling:
120120
// * rewrite sourceMappingURL
121121
// * save to disk so that upload-task picks this up

0 commit comments

Comments
 (0)