{
  "id": "@typed/fx#RefGraph.filterNodes",
  "canonicalId": "@typed/fx/RefGraph#filterNodes",
  "symbol": {
    "id": "@typed/fx#RefGraph.filterNodes",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefGraph.filterNodes",
    "kind": "constant",
    "signatures": [
      "export declare const filterNodes: {\n    <N>(predicate: (data: N) => boolean): <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>, predicate: (data: N) => boolean): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "summary": "Filter nodes.",
    "sections": {
      "Why": "Applies `filterNodes` 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": 456
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefGraph.filterNodes",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefGraph",
    "qualifiedName": "RefGraph.filterNodes",
    "declarationKey": "declaration:831467e45a2b1f4b88eb319d",
    "family": "variable",
    "signatures": [
      "export declare const filterNodes: {\n    <N>(predicate: (data: N) => boolean): <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>, predicate: (data: N) => boolean): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 456,
          "column": 14
        },
        "end": {
          "line": 478,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 457,
          "column": 3
        },
        "end": {
          "line": 461,
          "column": 52
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 462,
          "column": 3
        },
        "end": {
          "line": 465,
          "column": 50
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefGraph#filterNodes"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefGraph",
    "static": false,
    "importedFrom": "declaration:831467e45a2b1f4b88eb319d"
  },
  "declaration": {
    "declarationKey": "declaration:831467e45a2b1f4b88eb319d",
    "name": "filterNodes",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const filterNodes: {\n    <N>(predicate: (data: N) => boolean): <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>, predicate: (data: N) => boolean): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 456,
              "column": 14
            },
            "end": {
              "line": 478,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<N>(predicate: (data: N) => boolean): <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>, predicate: (data: N) => boolean): 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": 457,
              "column": 3
            },
            "end": {
              "line": 461,
              "column": 52
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefGraph.ts",
            "start": {
              "line": 462,
              "column": 3
            },
            "end": {
              "line": 465,
              "column": 50
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const filterNodes: {\n    <N>(predicate: (data: N) => boolean): <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>, predicate: (data: N) => boolean): Effect.Effect<Graph.Graph<N, E, T>, Err, R>;\n};"
    ],
    "typeParameters": [
      "N",
      "E",
      "T extends Graph.Kind",
      "Err",
      "R"
    ],
    "summary": "Filter nodes.",
    "sections": {
      "Why": "Applies `filterNodes` 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": 456,
          "column": 14
        },
        "end": {
          "line": 478,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 457,
          "column": 3
        },
        "end": {
          "line": 461,
          "column": 52
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefGraph.ts",
        "start": {
          "line": 462,
          "column": 3
        },
        "end": {
          "line": 465,
          "column": 50
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
