{
  "id": "@typed/fx#RefRecord.filter",
  "canonicalId": "@typed/fx/RefRecord#filter",
  "symbol": {
    "id": "@typed/fx#RefRecord.filter",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefRecord.filter",
    "kind": "constant",
    "signatures": [
      "export declare const filter: {\n    <K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, predicate: (value: V, key: K) => boolean): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "summary": "Filter entries in place.",
    "sections": {
      "Why": "Applies filter to the committed Record through `RefSubject.update` and publishes one coherent\nreplacement; this 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 Record and retains the ref's E and R channels."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefRecord.ts",
      "line": 345
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefRecord.filter",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefRecord",
    "qualifiedName": "RefRecord.filter",
    "declarationKey": "declaration:95fb28f68eb4772afedf7762",
    "family": "variable",
    "signatures": [
      "export declare const filter: {\n    <K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, predicate: (value: V, key: K) => boolean): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 345,
          "column": 14
        },
        "end": {
          "line": 360,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 346,
          "column": 3
        },
        "end": {
          "line": 348,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 349,
          "column": 3
        },
        "end": {
          "line": 352,
          "column": 55
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefRecord#filter"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefRecord",
    "static": false,
    "importedFrom": "declaration:95fb28f68eb4772afedf7762"
  },
  "declaration": {
    "declarationKey": "declaration:95fb28f68eb4772afedf7762",
    "name": "filter",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const filter: {\n    <K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, predicate: (value: V, key: K) => boolean): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 345,
              "column": 14
            },
            "end": {
              "line": 360,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;",
          "<K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, predicate: (value: V, key: K) => boolean): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;"
        ],
        "typeParameters": [
          "K extends string",
          "V",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 346,
              "column": 3
            },
            "end": {
              "line": 348,
              "column": 93
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 349,
              "column": 3
            },
            "end": {
              "line": 352,
              "column": 55
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const filter: {\n    <K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, predicate: (value: V, key: K) => boolean): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "typeParameters": [
      "K extends string",
      "V",
      "E",
      "R"
    ],
    "summary": "Filter entries in place.",
    "sections": {
      "Why": "Applies filter to the committed Record through `RefSubject.update` and publishes one coherent\nreplacement; this 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 Record and retains the ref's E and R channels."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 345,
          "column": 14
        },
        "end": {
          "line": 360,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 346,
          "column": 3
        },
        "end": {
          "line": 348,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 349,
          "column": 3
        },
        "end": {
          "line": 352,
          "column": 55
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
