API Reference
empty()
Complete immediately without emitting DATA.
Import
import { empty } from "@graphrefly/ts/sources";
Signature
function empty(): Operator<never, T>
Returns
A source operator that emits COMPLETE on activation.
Example
import { graph } from "@graphrefly/ts/graph";
import { empty } from "@graphrefly/ts/sources";
const done = graph().initNode(empty(), []);
Source
packages/ts/src/graph/sources.ts