code: function blobHandler(mimeType, callback) {
    return {
      type: 'blob',
      fn: (error, xhrObject) => {
        if (error) {
          callback(error);
          return;
        }
  
        const blob = new Blob([xhrObject.response], {
          type: mimeType,
        });
        callback(null, blob);
      },
    };
  }
docs: Blob handler