interface / @typed/fx/RefArray

RefArray

A RefArray is a RefSubject that is specialized over an array of values.

Package version
2.0.0-beta.7
Category
State models
Since
1.18.0

Import

import type { RefArray } from "@typed/fx/RefArray";

Signatures

export interface RefArray<in out A, in out E = never, out R = never> extends RefSubject.RefSubject<ReadonlyArray<A>, E, R> {
}

Why

Defines array state with the same current-read, pushed-update, and synchronized-write contract as RefSubject.

Ownership and lifetime

RefArray is a contract and performs no acquisition. Implementations retain the errors, services, interruption, and Scope requirements expressed by its members.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source