multitude
Version:
Comprehensive streams for push and pull
10 lines (9 loc) • 394 B
TypeScript
import { Push } from "../../../definitions";
/**
* Returns the first synchronous value of an Observable, if any,
* `onEmpty` if none is produced, or `onError` if
* the Observable errors synchronously.
* When `onError` doesn't exist, `extract` will
* synchronously throw.
*/
export declare function extract<T, U = void, V = U>(onEmpty?: U, onError?: V): Push.Transformation<T, T | U | V>;