API Reference

SetProxyclass

Class exported from proxies/set-proxy.

Overview

Set proxy factory and contracts that emit semantic membership changes.
Quick facts
Kind
class
Base class
AbstractObserver< Set<unknown>, Set<unknown>, undefined >
Members
3
Package
@rs-x/core

Import

import { SetProxy } from '@rs-x/state-manager';

Example

import { SetProxy } from '@rs-x/state-manager';

const instance = new SetProxy(...args);

Members

3 members in this class.

constructor
constructorpublic
constructor(
  owner: IDisposableOwner,
  initialValue: Set<unknown>,
  private readonly _proxyRegistry: IProxyRegistry
)

Parameters

NameTypeRequired
ownerIDisposableOwnerrequired
initialValueSet<unknown>required
_proxyRegistryIProxyRegistryrequired
get
methodpublic
public get(
  originalSet: Set<unknown>,
  property: PropertyKey
): unknown

Parameters

NameTypeRequired
originalSetSet<unknown>required
propertyPropertyKeyrequired

Returns

unknown

disposeInternal
methodprotected
protected override disposeInternal(): void

Parameters

No parameters.

Returns

void