function / @typed/fx

RefSubject.isComputed

Tests whether a value carries the public Computed TypeId.

Package version
2.0.0-beta.7
Category
Type guards
Since
1.18.0
Member of
RefSubject

Import

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

Access RefSubject.isComputed through the imported RefSubject 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 function isComputed(value: any): value is Computed<any, any, any>;

Why

Uses the TypeId contract rather than a concrete implementation class, so custom Computed values and service facades participate in the same runtime guard.

Ownership and lifetime

This synchronous predicate performs no Effect, subscription, or acquisition.

Other public imports

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

Source