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