Skip to content

readOf() ​

Function

readOf<T>(value: T): Read<T>

Create a new Read representing one value. Like of from rxjs.

ts
const value$: Read<string> = readOf('value');

Source: lib/read-of.ts:17

Type parameters ​

ParameterDescription
Ttype of the value

Parameters ​

ParameterTypeDescription
valueTvalue to be contained by the Read

Returns ​

Read<T>

Returns a new Read representing the passed value.