{
  "id": "@typed/fx/RefGraph#updateEdge",
  "canonicalId": "@typed/fx/RefGraph#updateEdge",
  "symbol": {
    "id": "@typed/fx/RefGraph#updateEdge",
    "packageName": "@typed/fx",
    "moduleName": "RefGraph",
    "exportName": "updateEdge",
    "kind": "constant",
    "signatures": [
      "export declare const updateEdge: {\n    <E>(edgeIndex: Graph.EdgeIndex, f: (data: E) => E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, edgeIndex: Graph.EdgeIndex, f: (data: E) => E): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "summary": "Update an edge's data.",
    "sections": {
      "Why": "Keeps update edge atomic with respect to competing RefSubject writes instead of splitting the\nread and replacement into separate effects.",
      "Ownership and lifetime": "Running update edge performs one serialized graph transition and resolves with its committed\nvalue. It acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefGraph.ts",
      "line": 337
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefGraph#updateEdge",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefGraph",
    "consumerSpecifier": "@typed/fx/RefGraph",
    "exportName": "updateEdge",
    "qualifiedName": "updateEdge",
    "declarationKey": "declaration:34186e3ca334cc42020847b8",
    "family": "variable",
    "signatures": [
      "export declare const updateEdge: {\n    <E>(edgeIndex: Graph.EdgeIndex, f: (data: E) => E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, edgeIndex: Graph.EdgeIndex, f: (data: E) => E): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 337,
          "column": 14
        },
        "end": {
          "line": 361,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 338,
          "column": 3
        },
        "end": {
          "line": 343,
          "column": 52
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 344,
          "column": 3
        },
        "end": {
          "line": 348,
          "column": 50
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefGraph.updateEdge"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:34186e3ca334cc42020847b8",
    "name": "updateEdge",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const updateEdge: {\n    <E>(edgeIndex: Graph.EdgeIndex, f: (data: E) => E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, edgeIndex: Graph.EdgeIndex, f: (data: E) => E): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 337,
              "column": 14
            },
            "end": {
              "line": 361,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<E>(edgeIndex: Graph.EdgeIndex, f: (data: E) => E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;",
          "<N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, edgeIndex: Graph.EdgeIndex, f: (data: E) => E): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;"
        ],
        "typeParameters": [
          "E",
          "N",
          "T extends Graph.Kind",
          "Err",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 338,
              "column": 3
            },
            "end": {
              "line": 343,
              "column": 52
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 344,
              "column": 3
            },
            "end": {
              "line": 348,
              "column": 50
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const updateEdge: {\n    <E>(edgeIndex: Graph.EdgeIndex, f: (data: E) => E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n    <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>, edgeIndex: Graph.EdgeIndex, f: (data: E) => E): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "typeParameters": [
      "E",
      "N",
      "T extends Graph.Kind",
      "Err",
      "R"
    ],
    "summary": "Update an edge's data.",
    "sections": {
      "Why": "Keeps update edge atomic with respect to competing RefSubject writes instead of splitting the\nread and replacement into separate effects.",
      "Ownership and lifetime": "Running update edge performs one serialized graph transition and resolves with its committed\nvalue. It acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 337,
          "column": 14
        },
        "end": {
          "line": 361,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 338,
          "column": 3
        },
        "end": {
          "line": 343,
          "column": 52
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 344,
          "column": 3
        },
        "end": {
          "line": 348,
          "column": 50
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
