type declaration for cloneInto

This commit is contained in:
Florian Dold 2016-10-05 00:09:54 +02:00
parent 6604bda9f6
commit 5bea586218
2 changed files with 6 additions and 4 deletions

View File

@ -28,6 +28,8 @@
"use strict";
declare var cloneInto: any;
// Make sure we don't pollute the namespace too much.
namespace TalerNotify {
const PROTOCOL_VERSION = 1;

View File

@ -187,15 +187,15 @@ function concatStreams (/*streams...*/) {
if (endCount == toMerge.length)
stream.emit('end');
})
})
});
stream.write = function (data) {
this.emit('data', data);
}
};
stream.destroy = function () {
toMerge.forEach(function (e) {
if (e.destroy) e.destroy();
})
}
};
return stream;
}
@ -329,7 +329,7 @@ function tsconfig(confBase) {
path: "tsconfig.json",
contents: new Buffer(x),
});
this.push(f)
this.push(f);
cb();
});
}