ReadonlyRollingCounter

import { ReadonlyRollingCounter } from "jsr:@ende/data-structures/unstable-rolling-counter";

type alias ยท experimental

type ReadonlyRollingCounter = Pick<RollingCounter, "current" | "total" | "segmentCount" | "at" | "toArray" | "toJSON" | typeof Symbol.iterator | typeof Symbol.toStringTag>

Read-only view of a RollingCounter. Strips all mutation methods, following the ReadonlyArray / ReadonlyMap / ReadonlySet pattern. A RollingCounter is directly assignable to ReadonlyRollingCounter.

Source