s3-query-json
Version:
Query (ND)JSON files on S3
24 lines (23 loc) • 645 B
TypeScript
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 {};