From b139d9d5518274e7a8801ad0c5cedca86cdf64fd Mon Sep 17 00:00:00 2001 From: Kenny Daniel Date: Mon, 20 May 2024 02:04:40 -0700 Subject: [PATCH] Don't depend on hyparquet for Compressors type --- src/index.d.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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