UNPKG

@az0uz/zarr

Version:

Javascript implementation of Zarr

9 lines (8 loc) 386 B
import type { Codec, CodecConstructor } from 'numcodecs'; declare type Config = Record<string, unknown>; declare type CodecImporter = () => CodecConstructor<Config> | Promise<CodecConstructor<Config>>; export declare function addCodec(id: string, importFn: CodecImporter): void; export declare function getCodec(config: Config & { id: string; }): Promise<Codec>; export {};