Overview
Map proxy factory and contracts that emit semantic key/mutation changes.
API Reference
Class exported from proxies/map-proxy.
import { MapProxy } from '@rs-x/state-manager';import { MapProxy } from '@rs-x/state-manager';
const instance = new MapProxy(...args);3 members in this class.
constructor(
owner: IDisposableOwner,
map: Map<unknown, unknown>,
private readonly _proxyRegistry: IProxyRegistry
)Parameters
| Name | Type | Required |
|---|---|---|
| owner | IDisposableOwner | required |
| map | Map<unknown, unknown> | required |
| _proxyRegistry | IProxyRegistry | required |
public get(
originalMap: Map<unknown, unknown>,
property: PropertyKey
): unknownParameters
| Name | Type | Required |
|---|---|---|
| originalMap | Map<unknown, unknown> | required |
| property | PropertyKey | required |
Returns
unknown
protected override disposeInternal(): voidParameters
No parameters.
Returns
void