diff --git a/src/index.d.ts b/src/index.d.ts index a826ccb..978f963 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,3 +1,15 @@ -import type { Compressors } from 'hyparquet' +export type CompressionCodec = + 'UNCOMPRESSED' | + 'SNAPPY' | + 'GZIP' | + 'LZO' | + 'BROTLI' | + 'LZ4' | + 'ZSTD' | + 'LZ4_RAW' + +export type Compressors = { + [K in CompressionCodec]?: (input: Uint8Array, outputLength: number) => Uint8Array +} export const compressors: Compressors