WindowCounterState
Defined in: src/window-rate-limiter.ts:42
WindowCounter.snapshot(): bucket counts newest first; elapsed = ms into the newest bucket at at.
Properties
Section titled “Properties”
readonlyat:number
Defined in: src/window-rate-limiter.ts:44
counts
Section titled “counts”
readonlycounts: readonlynumber[]
Defined in: src/window-rate-limiter.ts:46
elapsed
Section titled “elapsed”
readonlyelapsed:number
Defined in: src/window-rate-limiter.ts:45
readonlykind:"window"
Defined in: src/window-rate-limiter.ts:43