Dictionary Interface
Signature
export interface Dictionary<TKey, TData>
Type Parameters
Parameter | Description |
---|---|
TKey | |
TData |
Methods
Method | Return Type | Description |
---|---|---|
get(key) | Property<TKey, TData> | undefined | |
map(action, accum) | void | |
put(key, data, conflict) | void | |
remove(key) | void |
Method Details
get
Signature
get(key: TKey): Property<TKey, TData> | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
key | TKey |
Returns
Return type: Property<TKey, TData> | undefined
map
Signature
map<TAccum>(action: PropertyAction<TKey, TData>, accum?: TAccum): void;
Type Parameters
Parameter | Description |
---|---|
TAccum |
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
action | PropertyAction<TKey, TData> | ||
accum | optional | TAccum |
put
Signature
put(key: TKey, data: TData, conflict?: ConflictAction<TKey, TData>): void;
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
key | TKey | ||
data | TData | ||
conflict | optional | ConflictAction<TKey, TData> |
remove
Signature
remove(key: TKey): void;
Parameters
Parameter | Type | Description |
---|---|---|
key | TKey |