Skip to documentation
Docs navigation
Docs/RememberOptions
Types

RememberOptions

TypeScript contract for RememberOptions.

What it does

TypeScript contract for RememberOptions.

Use RememberOptions to keep application code aligned with the values MemoGrafter accepts or returns at this boundary. It is a TypeScript-only contract and adds no runtime behavior.

Definition

TypeScript
type RememberOptions = IngestTextOptions;

Fields and behavior

replace? (boolean, default false) — Clear the current session graph before remembering this text; use with care.
label? (string) — Supply an extraction label.
source? (string, default "remember") — Override the provenance label applied by remember().

Result

A compile-time-only TypeScript contract with no runtime value.

Example

example.ts
import type { RememberOptions } from "memo-grafter";

function useValue(value: RememberOptions) {
  return value;
}

Important behavior

Use import type when the contract is not needed at runtime.