GraphReFlyTS

API Reference

flatMap()

flatMap: alias of {@link mergeMap} (RxJS naming parity).

Import

import { flatMap } from "@graphrefly/ts/operators";

Signature

function flatMap(
	project: Project<TIn, TOut>,
	opts: MergeMapOptions = {},
): Operator<TIn, TOut>

Parameters

ParameterTypeDescription
projectProject<TIn, TOut>project value used by the helper.
optsMergeMapOptionsOptions that configure the helper.

Returns

A Operator<TIn, TOut> value.

Example

import { flatMap } from "@graphrefly/ts/operators";

Source

packages/ts/src/graph/higher-order.ts