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: rxjs-read/src/lib/read-of.ts:17
Type parameters
| Parameter | Description |
|---|---|
| T | type of the value |
Parameters
| Parameter | Type | Description |
|---|---|---|
| value | T | value to be contained by the Read |
Returns
Read<T>
Returns a new Read representing the passed value.