UNPKG

s3-query-json

Version:
24 lines (23 loc) 645 B
export declare enum DocumentType { JSON = "JSON", NDJSON = "NDJSON" } export declare enum CompressionType { NONE = "NONE", GZIP = "GZIP", BZIP2 = "BZIP2" } declare type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>; }[Keys]; export interface Options { documentType?: 'JSON' | 'NDJSON'; compressionType?: 'NONE' | 'GZIP' | 'BZIP2'; delimiter?: string; scanRange?: RequireAtLeastOne<{ start: string; end: string; }, 'start' | 'end'>; stream?: boolean; } export {};