Interface ReadonlySignalSet<T>

An immutable Set where the state and values are accessible as signals

interface ReadonlySignalSet<T> {
    array: Signal<readonly T[]>;
    empty: Signal<boolean>;
    size: Signal<number>;
    value: Signal<ReadonlySet<T>>;
    [iterator](): Iterator<T, any, undefined>;
    has(key: T): Signal<boolean>;
}

Type Parameters

  • T

Hierarchy

  • Iterable<T>
    • ReadonlySignalSet

Implemented by

Properties

Methods

Properties

array: Signal<readonly T[]>

A signal emitting the values of the set as an array

empty: Signal<boolean>

A signal emitting true if the collection is empty

size: Signal<number>

A signal emitting the number of items in the collection

value: Signal<ReadonlySet<T>>

A signal emitting the inner non-signal Set

Methods

  • Returns Iterator<T, any, undefined>