{
  "id": "@typed/fx/RefTuple#updateAt",
  "canonicalId": "@typed/fx/RefTuple#updateAt",
  "symbol": {
    "id": "@typed/fx/RefTuple#updateAt",
    "packageName": "@typed/fx",
    "moduleName": "RefTuple",
    "exportName": "updateAt",
    "kind": "constant",
    "signatures": [
      "export declare const updateAt: {\n    <T extends ReadonlyArray<unknown>, I extends number>(index: I, f: (value: T[I]) => T[I]): <E, R>(ref: RefTuple<T, E, R>) => Effect.Effect<T, E, R>;\n    <T extends ReadonlyArray<unknown>, I extends number, E, R>(ref: RefTuple<T, E, R>, index: I, f: (value: T[I]) => T[I]): Effect.Effect<T, E, R>;\n};"
    ],
    "summary": "Update the value at a specific index in the current state of a RefTuple using a function.",
    "sections": {
      "Why": "Keeps update at atomic with respect to competing RefSubject writes instead of splitting the read\nand replacement into separate effects.",
      "Ownership and lifetime": "Running update at performs one serialized tuple transition and resolves with its committed\nvalue. It acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefTuple.ts",
      "line": 129
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefTuple#updateAt",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefTuple",
    "consumerSpecifier": "@typed/fx/RefTuple",
    "exportName": "updateAt",
    "qualifiedName": "updateAt",
    "declarationKey": "declaration:6ef9cbc02600c24a53538b27",
    "family": "variable",
    "signatures": [
      "export declare const updateAt: {\n    <T extends ReadonlyArray<unknown>, I extends number>(index: I, f: (value: T[I]) => T[I]): <E, R>(ref: RefTuple<T, E, R>) => Effect.Effect<T, E, R>;\n    <T extends ReadonlyArray<unknown>, I extends number, E, R>(ref: RefTuple<T, E, R>, index: I, f: (value: T[I]) => T[I]): Effect.Effect<T, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 129,
          "column": 14
        },
        "end": {
          "line": 146,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 130,
          "column": 3
        },
        "end": {
          "line": 133,
          "column": 63
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 134,
          "column": 3
        },
        "end": {
          "line": 138,
          "column": 29
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefTuple.updateAt"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:6ef9cbc02600c24a53538b27",
    "name": "updateAt",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const updateAt: {\n    <T extends ReadonlyArray<unknown>, I extends number>(index: I, f: (value: T[I]) => T[I]): <E, R>(ref: RefTuple<T, E, R>) => Effect.Effect<T, E, R>;\n    <T extends ReadonlyArray<unknown>, I extends number, E, R>(ref: RefTuple<T, E, R>, index: I, f: (value: T[I]) => T[I]): Effect.Effect<T, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefTuple.ts",
            "start": {
              "line": 129,
              "column": 14
            },
            "end": {
              "line": 146,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<T extends ReadonlyArray<unknown>, I extends number>(index: I, f: (value: T[I]) => T[I]): <E, R>(ref: RefTuple<T, E, R>) => Effect.Effect<T, E, R>;",
          "<T extends ReadonlyArray<unknown>, I extends number, E, R>(ref: RefTuple<T, E, R>, index: I, f: (value: T[I]) => T[I]): Effect.Effect<T, E, R>;"
        ],
        "typeParameters": [
          "T extends ReadonlyArray<unknown>",
          "I extends number",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefTuple.ts",
            "start": {
              "line": 130,
              "column": 3
            },
            "end": {
              "line": 133,
              "column": 63
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefTuple.ts",
            "start": {
              "line": 134,
              "column": 3
            },
            "end": {
              "line": 138,
              "column": 29
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const updateAt: {\n    <T extends ReadonlyArray<unknown>, I extends number>(index: I, f: (value: T[I]) => T[I]): <E, R>(ref: RefTuple<T, E, R>) => Effect.Effect<T, E, R>;\n    <T extends ReadonlyArray<unknown>, I extends number, E, R>(ref: RefTuple<T, E, R>, index: I, f: (value: T[I]) => T[I]): Effect.Effect<T, E, R>;\n};"
    ],
    "typeParameters": [
      "T extends ReadonlyArray<unknown>",
      "I extends number",
      "E",
      "R"
    ],
    "summary": "Update the value at a specific index in the current state of a RefTuple using a function.",
    "sections": {
      "Why": "Keeps update at atomic with respect to competing RefSubject writes instead of splitting the read\nand replacement into separate effects.",
      "Ownership and lifetime": "Running update at performs one serialized tuple transition and resolves with its committed\nvalue. It acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 129,
          "column": 14
        },
        "end": {
          "line": 146,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 130,
          "column": 3
        },
        "end": {
          "line": 133,
          "column": 63
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 134,
          "column": 3
        },
        "end": {
          "line": 138,
          "column": 29
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
