(reason: string)
| 39 | } |
| 40 | |
| 41 | function throwZipLimitExceeded(reason: string): never { |
| 42 | throw new Error(`PPTX zip limit exceeded: ${reason}`) |
| 43 | } |
| 44 | |
| 45 | function readUncompressedSize(file: JSZipObject): number | undefined { |
| 46 | const data = (file as JSZipObject & { _data?: { uncompressedSize?: number } })._data |