INNER CODE UNIT · TypeScript
configure
gildas-lormeau/zip.js · index.d.ts:256
export function configure(configuration: Configuration): void;
/**
* Restores the default configuration of zip.js
*/
export function resetConfiguration(): void;
/**
* Registers a codec for a custom compression method (e.g. Zstandard, method 93). Entries using a
* registered method can then be written with `ZipWriter#add` and read with `FileEntry#getData`.
*
* Codecs registered with `CompressionStream`/`DecompressionStream` classes run on the main thread.
* Codecs registered with a `codecURI` module URL also run in web workers: the module is imported
* dynamically on both sides of the worker boundary.
*
* @param codec The codec definition.
*/
export function registerCodec(codec: CodecDefinition): void;