Skip to content
PACKAGES

empty()

Complete immediately without emitting DATA.

import { empty } from "@graphrefly/ts/sources";
function empty(): Operator<never, T>

A source operator that emits COMPLETE on activation.

import { graph } from "@graphrefly/ts/graph";
import { empty } from "@graphrefly/ts/sources";
const done = graph().initNode(empty(), []);

packages/ts/src/graph/sources.ts