Skip to content

Commit

Permalink
chore(jsr): Fix codec typing
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed May 28, 2024
1 parent 2e7541e commit f838137
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/codecs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Codec } from "numcodecs";
import type { Codec as _Codec } from "numcodecs";
import type { Chunk, CodecMetadata, DataType } from "./metadata.js";

import { BytesCodec } from "./codecs/bytes.js";
Expand All @@ -18,6 +18,8 @@ type CodecEntry = {
kind?: "array_to_array" | "array_to_bytes" | "bytes_to_bytes";
};

type Codec = _Codec & { kind: CodecEntry["kind"] };

function create_default_registry(): Map<string, () => Promise<CodecEntry>> {
return new Map()
.set("blosc", () => import("numcodecs/blosc").then((m) => m.default))
Expand Down

0 comments on commit f838137

Please sign in to comment.