RoadmapShopEvents
Skip to main content

Home > @rushstack/node-core-library > IProtectableMapParameters

IProtectableMapParameters interface

Constructor parameters for ProtectableMap

Signature:
export interface IProtectableMapParameters<K, V>

Properties

PropertyTypeDescription
onClear?(source: ProtectableMap <K, V>) => void(Optional) An optional hook that will be invoked before Map.clear() is performed.
onDelete?(source: ProtectableMap <K, V>, key: K) => void(Optional) An optional hook that will be invoked before Map.delete() is performed.
onSet?(source: ProtectableMap <K, V>, key: K, value: V) => V(Optional) An optional hook that will be invoked before Map.set() is performed.