Dtype extends DataType
A helper method to narrow zarr.Array
Dtype.
let arr: zarr.Array<DataType, FetchStore> = zarr.open(store, { kind: "array" }); // Option 1: narrow by scalar type (e.g. "bool", "raw", "bigint", "number") if (arr.is("bigint")) { // zarr.Array<"int64" | "uint64", FetchStore> } // Option 3: exact match if (arr.is("float32")) { // zarr.Array<"float32", FetchStore, "/"> }