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

Name
Type
Required
owner
IDisposableOwner
required
initialValue
Set<unknown>
required
_proxyRegistry
IProxyRegistry
required
get
methodpublic
public get(
  originalSet: Set<unknown>,
  property: PropertyKey
): unknown

Parameters

Name
Type
Required
originalSet
Set<unknown>
required
property
PropertyKey
required

Returns

unknown

disposeInternal
methodprotected
protected override disposeInternal(): void

Parameters

No parameters.

Returns

void