()
| 231 | } |
| 232 | |
| 233 | async loadFile (): Promise<ArrayBuffer | Blob | ScanFileLike> { |
| 234 | if ( typeof this.fileLoader !== 'function' ) { |
| 235 | return this.fileLoader |
| 236 | } |
| 237 | |
| 238 | const file = this.fileLoader() |
| 239 | |
| 240 | if ( file instanceof Promise || isPromiseLike( file ) ) { |
| 241 | return await file as ArrayBuffer | Blob | ScanFileLike |
| 242 | } |
| 243 | |
| 244 | return file |
| 245 | } |
| 246 | |
| 247 | async getZipFileReader ( fileInstance: ArrayBuffer | Blob | ScanFileLike ) { |
| 248 | if ( isBlob( fileInstance ) ) { |
no test coverage detected