variable / @typed/fx/RefTrie

compact

Compact Option values.

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

Import

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

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