export function toBlob(fileData) {
    if (fileData instanceof Blob) {
        // File inherits Blob so File is handled here
        return fileData;
    }
    else if (fileData instanceof ArrayBuffer) {
        return new Blob([fileData]);
    }
    else {
        return new Blob([JSON.stringify(fileData)]);
    }
}
//# sourceMappingURL=blob.js.map