restoreRegistry()
Merge restore registry entries into a duplicate-checking Map.
Import
Section titled “Import”import { restoreRegistry } from "@graphrefly/ts/operators";Signature
Section titled “Signature”function restoreRegistry( entries: readonly GraphRestoreEntry[] = [], base?: GraphRestoreRegistry,): Map<string, GraphRestoreEntry>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
entries | readonly GraphRestoreEntry[] | Additional restore entries to add. |
base | GraphRestoreRegistry | Optional base registry to copy from. |
Returns
Section titled “Returns”A Map keyed by restore ref.
Example
Section titled “Example”restoreRegistry([define("trim", (value: string) => value.trim())]);Source
Section titled “Source”packages/ts/src/graph/operators.ts