variable / @typed/fx

RefTrie.compact

Compact Option values.

Package version
2.0.0-beta.13
Category
Derived queries
Since
1.18.0
Member of
RefTrie

Import

import { RefTrie } from "@typed/fx";

Access RefTrie.compact through the imported RefTrie export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export declare const compact: <V, E, R>(ref: RefTrie<Option.Option<V>, E, R>) => RefSubject.Computed<Trie.Trie<V>, E, R>;

Why

Creates a read-only Computed trie by removing None values and unwrapping Some values on each source version; the result is never absent as a whole.

Ownership and lifetime

This declaration performs no acquisition and retains no resources. Implementations preserve source errors, services, and lifetime.

Other public imports

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

Source