Skip to content

Commit 7dd6ad2

Browse files
authored
fix: export memory stats type publicly (#680)
Summary: this pr exports the MemoryStats type for public consumption.
1 parent 838fcda commit 7dd6ad2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/idetik.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type IdetikContext = {
2929

3030
// JS heap usage from the non-standard performance.memory API.
3131
// Chromium only, undefined where the API is unavailable.
32-
type MemoryStats = {
32+
export type MemoryStats = {
3333
cpuChunkBytes: number;
3434
cpuChunkCount: number;
3535
gpuTextureBytes: number;

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export {
3737
export type { ChannelProps } from "./core/channel";
3838
export type { Image as OmeZarrImage } from "./data/ome_zarr/0.4/image";
3939
export type { LayerState } from "./core/layer";
40-
export type { Overlay } from "./idetik";
40+
export type { MemoryStats, Overlay } from "./idetik";
4141
export type { SliceCoordinates } from "./data/chunk";
4242

4343
export { Color } from "./math/color";

0 commit comments

Comments
 (0)