This project has been succeeded by GraphReFly. New development happens at graphrefly-ts. npm install @graphrefly/graphrefly
Skip to content

rawFromAny()

Normalizes any value into a raw callbag source that emits value(s) then completes.

Dispatch order:

  1. PromiseLike — delegates to rawFromPromise
  2. AsyncIterable — delegates to rawFromAsyncIter
  3. Iterable (non-string) — emits each element synchronously, then END
  4. Plain value — emits once, then END

Signature

ts
function rawFromAny<T>(
	input: T | PromiseLike<T> | Iterable<T> | AsyncIterable<T>,
): CallbagSource

Parameters

ParameterTypeDescription
input`TPromiseLike<T>

Returns

A raw callbag source function.

Released under the MIT License.