ILossy
Defined in: packages/data/src/collection/ilossy.ts:18
A bounded collection that never throws on an over-capacity insert.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”IAsyncLossyDequeILossyDequeIAsyncLossyHeapILossyHeapIAsyncLossyPriorityQueueILossyPriorityQueueIAsyncLossyQueueILossyQueueIAsyncLossyStackILossyStack
Properties
Section titled “Properties”capacity
Section titled “capacity”
readonlycapacity:number
Defined in: packages/data/src/collection/ibounded.ts:17
The maximum number of elements the collection can hold.
Note: Infinity is not a legal value here — an unbounded type omits this
mixin.
Inherited from
Section titled “Inherited from”overflowPolicy
Section titled “overflowPolicy”
readonlyoverflowPolicy:OverflowPolicy
Defined in: packages/data/src/collection/ilossy.ts:20
Policy applied when the collection reaches its capacity.