{
  "id": "@typed/fx#RefArray.map",
  "canonicalId": "@typed/fx/RefArray#map",
  "symbol": {
    "id": "@typed/fx#RefArray.map",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefArray.map",
    "kind": "constant",
    "signatures": [
      "export declare const map: {\n    <A>(f: (a: A, index: number) => A): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A, index: number) => A): RefSubject.Computed<ReadonlyArray<A>, E, R>;\n};"
    ],
    "summary": "Map (Endomorphic) the values of a RefArray.",
    "sections": {
      "Why": "The implementation applies the endomorphic map through `RefSubject.update`, replacing the\nwritable RefArray in one serialized transition. The published Computed return type does not\ndescribe that runtime behavior.",
      "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 array and retains the ref's E and R channels.",
      "Known API defect": "The public overloads currently declare `Computed<ReadonlyArray<A>, E, R>`, but the implementation\nreturns the update Effect from `RefSubject.update`. This documentation reports the shipped mismatch;\nchanging that signature or runtime behavior requires a separate compatibility decision."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefArray.ts",
      "line": 440
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefArray.map",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefArray",
    "qualifiedName": "RefArray.map",
    "declarationKey": "declaration:0f3501f9806543ad1fd04d9c",
    "family": "variable",
    "signatures": [
      "export declare const map: {\n    <A>(f: (a: A, index: number) => A): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A, index: number) => A): RefSubject.Computed<ReadonlyArray<A>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 440,
          "column": 14
        },
        "end": {
          "line": 450,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 441,
          "column": 3
        },
        "end": {
          "line": 443,
          "column": 84
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 444,
          "column": 3
        },
        "end": {
          "line": 447,
          "column": 50
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefArray#map"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefArray",
    "static": false,
    "importedFrom": "declaration:0f3501f9806543ad1fd04d9c"
  },
  "declaration": {
    "declarationKey": "declaration:0f3501f9806543ad1fd04d9c",
    "name": "map",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const map: {\n    <A>(f: (a: A, index: number) => A): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A, index: number) => A): RefSubject.Computed<ReadonlyArray<A>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 440,
              "column": 14
            },
            "end": {
              "line": 450,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A>(f: (a: A, index: number) => A): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<A>, E, R>;",
          "<A, E, R>(ref: RefArray<A, E, R>, f: (a: A, index: number) => A): RefSubject.Computed<ReadonlyArray<A>, E, R>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 441,
              "column": 3
            },
            "end": {
              "line": 443,
              "column": 84
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 444,
              "column": 3
            },
            "end": {
              "line": 447,
              "column": 50
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const map: {\n    <A>(f: (a: A, index: number) => A): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A, index: number) => A): RefSubject.Computed<ReadonlyArray<A>, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Map (Endomorphic) the values of a RefArray.",
    "sections": {
      "Why": "The implementation applies the endomorphic map through `RefSubject.update`, replacing the\nwritable RefArray in one serialized transition. The published Computed return type does not\ndescribe that runtime behavior.",
      "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 array and retains the ref's E and R channels.",
      "Known API defect": "The public overloads currently declare `Computed<ReadonlyArray<A>, E, R>`, but the implementation\nreturns the update Effect from `RefSubject.update`. This documentation reports the shipped mismatch;\nchanging that signature or runtime behavior requires a separate compatibility decision."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 440,
          "column": 14
        },
        "end": {
          "line": 450,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 441,
          "column": 3
        },
        "end": {
          "line": 443,
          "column": 84
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 444,
          "column": 3
        },
        "end": {
          "line": 447,
          "column": 50
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
