INNER CODE UNIT · TypeScript
initWorker
gildas-lormeau/zip.js · index.d.ts:699
export function initWorker(options?: {
/**
* The stream implementation used to compress data when `useCompressionStream` is set to `false` or when `CompressionStream` is unsupported.
*/
CompressionStreamFallback?: typeof CompressionStreamLike;
/**
* The stream implementation used to decompress data when `useCompressionStream` is set to `false` or when `DecompressionStream` is unsupported.
*/
DecompressionStreamFallback?: typeof DecompressionStreamLike;
/**
* The function called before resolving the stream implementations, e.g. to load a WebAssembly module.
*/
init?(config: Configuration): Promise<unknown> | unknown;
}): void;
/**
* Returns the MIME type corresponding to a filename extension.
*