import { unzlibSync , strFromU8 } from 'fflate' ; import { toByteArray } from 'base64-js' ; export function inflateResponse < Result extends object > ( response ) { const buff = toByteArray ( response ) ; const unzip = unzlibSync ( buff ) ; return strFromU8 ( unzip ) ; }