Home > @rushstack/node-core-library > IProtectableMapParameters
IProtectableMapParameters interface
Constructor parameters for ProtectableMap
Signature:
export interface IProtectableMapParameters<K, V>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
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. |