form-graph
    Preparing search index...

    Interface ListSnapshot

    The binding-facing view of a list — an eager ids snapshot plus the ops. One shared type for both frameworks, the FieldSnapshot precedent: React's useList and Svelte's list handle both return it.

    interface ListSnapshot {
        ids: readonly string[];
        add(
            seed?: Record<string, unknown>,
        ): ListOpRefusal | { id: string; success: true };
        duplicate(id: string): ListOpRefusal | { id: string; success: true };
        move(id: string, index: number): ListOpRefusal | { success: true };
        remove(id: string): ListOpRefusal | { success: true };
    }

    Hierarchy

    • Pick<ListHandle, "add" | "remove" | "duplicate" | "move">
      • ListSnapshot
    Index
    ids: readonly string[]
    • Appends a minted element; seed writes member fields of the new element.

      Parameters

      • Optionalseed: Record<string, unknown>

      Returns ListOpRefusal | { id: string; success: true }