wrap()
Adapts raw callbag sources or callbag operators into first-class stores.
Signature
ts
function wrap<T>(rawSource: Callbag): Store<T>
function wrap<A, B>(input: Store<A>, rawOp: (source: Callbag) => Callbag): Store<B>Parameters
| Parameter | Type | Description |
|---|---|---|
sourceOrInput | `Callbag | Store<any>` |
rawOp | (source: Callbag) => Callbag | When set, (source) => transformedSource — STATE from input bypasses the raw op (Tier 1). |
Returns
Store<T> or Store<B> — Tier 2 for bare sources (each DATA is a cycle).
Options / Behavior Details
- Sync map only for operator form; filtering needs explicit
operator()wiring.