{
  "id": "@typed/fx/RefRecord#map",
  "canonicalId": "@typed/fx/RefRecord#map",
  "symbol": {
    "id": "@typed/fx/RefRecord#map",
    "packageName": "@typed/fx",
    "moduleName": "RefRecord",
    "exportName": "map",
    "kind": "constant",
    "signatures": [
      "export declare const map: {\n    <K extends string, V>(f: (value: V, key: K) => V): <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>, f: (value: V, key: K) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "summary": "Map values in place (endomorphic).",
    "sections": {
      "Why": "Applies map 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": 377
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefRecord#map",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "RefRecord",
    "consumerSpecifier": "@typed/fx/RefRecord",
    "exportName": "map",
    "qualifiedName": "map",
    "declarationKey": "declaration:5968366999a4a8343450e4e8",
    "family": "variable",
    "signatures": [
      "export declare const map: {\n    <K extends string, V>(f: (value: V, key: K) => V): <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>, f: (value: V, key: K) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 377,
          "column": 14
        },
        "end": {
          "line": 392,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 378,
          "column": 3
        },
        "end": {
          "line": 380,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 381,
          "column": 3
        },
        "end": {
          "line": 384,
          "column": 55
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefRecord.map"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:5968366999a4a8343450e4e8",
    "name": "map",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const map: {\n    <K extends string, V>(f: (value: V, key: K) => V): <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>, f: (value: V, key: K) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 377,
              "column": 14
            },
            "end": {
              "line": 392,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K extends string, V>(f: (value: V, key: K) => V): <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>, f: (value: V, key: K) => V): 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": 378,
              "column": 3
            },
            "end": {
              "line": 380,
              "column": 93
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 381,
              "column": 3
            },
            "end": {
              "line": 384,
              "column": 55
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const map: {\n    <K extends string, V>(f: (value: V, key: K) => V): <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>, f: (value: V, key: K) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "typeParameters": [
      "K extends string",
      "V",
      "E",
      "R"
    ],
    "summary": "Map values in place (endomorphic).",
    "sections": {
      "Why": "Applies map 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": 377,
          "column": 14
        },
        "end": {
          "line": 392,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 378,
          "column": 3
        },
        "end": {
          "line": 380,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 381,
          "column": 3
        },
        "end": {
          "line": 384,
          "column": 55
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
