{
  "id": "@typed/fx/RefGraph#mapNodes",
  "canonicalId": "@typed/fx/RefGraph#mapNodes",
  "symbol": {
    "id": "@typed/fx/RefGraph#mapNodes",
    "packageName": "@typed/fx",
    "moduleName": "RefGraph",
    "exportName": "mapNodes",
    "kind": "constant",
    "signatures": [
      "export declare const mapNodes: {\n    <N>(f: (data: N) => N): <E, 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>, f: (data: N) => N): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "summary": "Map all node data.",
    "sections": {
      "Why": "Applies `mapNodes` through `RefSubject.update` and publishes one coherent graph replacement;\nthis is a mutation, not a read-only Computed projection.",
      "Ownership and lifetime": "The Effect starts when run, participates in the source ref's serialized update boundary, and\nacquires no resource. It returns the committed graph and retains the ref's E and R channels."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefGraph.ts",
      "line": 378
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefGraph#mapNodes",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefGraph",
    "consumerSpecifier": "@typed/fx/RefGraph",
    "exportName": "mapNodes",
    "qualifiedName": "mapNodes",
    "declarationKey": "declaration:36de176e9b907c2f20f92a33",
    "family": "variable",
    "signatures": [
      "export declare const mapNodes: {\n    <N>(f: (data: N) => N): <E, 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>, f: (data: N) => N): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 378,
          "column": 14
        },
        "end": {
          "line": 400,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 379,
          "column": 3
        },
        "end": {
          "line": 383,
          "column": 52
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 384,
          "column": 3
        },
        "end": {
          "line": 387,
          "column": 50
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefGraph.mapNodes"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:36de176e9b907c2f20f92a33",
    "name": "mapNodes",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const mapNodes: {\n    <N>(f: (data: N) => N): <E, 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>, f: (data: N) => N): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 378,
              "column": 14
            },
            "end": {
              "line": 400,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<N>(f: (data: N) => N): <E, 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>, f: (data: N) => N): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;"
        ],
        "typeParameters": [
          "N",
          "E",
          "T extends Graph.Kind",
          "Err",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 379,
              "column": 3
            },
            "end": {
              "line": 383,
              "column": 52
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 384,
              "column": 3
            },
            "end": {
              "line": 387,
              "column": 50
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const mapNodes: {\n    <N>(f: (data: N) => N): <E, 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>, f: (data: N) => N): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "typeParameters": [
      "N",
      "E",
      "T extends Graph.Kind",
      "Err",
      "R"
    ],
    "summary": "Map all node data.",
    "sections": {
      "Why": "Applies `mapNodes` through `RefSubject.update` and publishes one coherent graph replacement;\nthis is a mutation, not a read-only Computed projection.",
      "Ownership and lifetime": "The Effect starts when run, participates in the source ref's serialized update boundary, and\nacquires no resource. It returns the committed graph and retains the ref's E and R channels."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 378,
          "column": 14
        },
        "end": {
          "line": 400,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 379,
          "column": 3
        },
        "end": {
          "line": 383,
          "column": 52
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 384,
          "column": 3
        },
        "end": {
          "line": 387,
          "column": 50
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
