@syncfusion/ej2-excel-export
Version:
Essential Javascript 2 Excel Export Library
22 lines (21 loc) • 547 B
JavaScript
/**
* BlobHelper class
* @private
*/
/* eslint-disable */
var BlobHelper = /** @class */ (function () {
function BlobHelper() {
/* tslint:disable:no-any */
this.parts = [];
}
/* tslint:disable:no-any */
BlobHelper.prototype.append = function (part) {
this.parts.push(part);
this.blob = undefined; // Invalidate the blob
};
BlobHelper.prototype.getBlob = function () {
return new Blob(this.parts, { type: 'text/plain' });
};
return BlobHelper;
}());
export { BlobHelper };