INNER CODE UNIT · TypeScript
getSupportedCompressionMethods
gildas-lormeau/zip.js · index.d.ts:309
export function getSupportedCompressionMethods(): SupportedCompressionMethod[];
/**
* Represents the support of a compression method, see {@link getSupportedCompressionMethods}.
*/
export interface SupportedCompressionMethod {
/**
* The compression method stored in zip entry headers (e.g. `8` for Deflate).
*/
compressionMethod: number;
/**
* `true` if entries can be compressed with the method. It is `undefined` when the support is
* unknown, i.e. for a codec registered with {@link CodecDefinition#codecURI} whose module has not
* been imported yet.
*/
compression?: boolean;
/**
* `true` if entries can be decompressed with the method. It is `undefined` when the support is