{
  "id": "@typed/fx/RefArray#insertAt",
  "canonicalId": "@typed/fx/RefArray#insertAt",
  "symbol": {
    "id": "@typed/fx/RefArray#insertAt",
    "packageName": "@typed/fx",
    "moduleName": "RefArray",
    "exportName": "insertAt",
    "kind": "constant",
    "signatures": [
      "export declare const insertAt: {\n    <A>(index: number, a: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, index: number, a: A): Effect.Effect<ReadonlyArray<A>, E, R>;\n};"
    ],
    "summary": "Insert a value at a particular index of a RefArray.",
    "sections": {
      "Why": "Expresses insert at as one ordered array transition; readers never observe the intermediate\ncollection used to build the result.",
      "Ownership and lifetime": "Running insert at performs one serialized array 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/RefArray.ts",
      "line": 352
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefArray#insertAt",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefArray",
    "consumerSpecifier": "@typed/fx/RefArray",
    "exportName": "insertAt",
    "qualifiedName": "insertAt",
    "declarationKey": "declaration:83a0d71b7a58b1d7657381a3",
    "family": "variable",
    "signatures": [
      "export declare const insertAt: {\n    <A>(index: number, a: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, index: number, a: A): Effect.Effect<ReadonlyArray<A>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 352,
          "column": 14
        },
        "end": {
          "line": 359,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 353,
          "column": 3
        },
        "end": {
          "line": 353,
          "column": 101
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 354,
          "column": 3
        },
        "end": {
          "line": 354,
          "column": 97
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefArray.insertAt"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:83a0d71b7a58b1d7657381a3",
    "name": "insertAt",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const insertAt: {\n    <A>(index: number, a: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, index: number, a: A): Effect.Effect<ReadonlyArray<A>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 352,
              "column": 14
            },
            "end": {
              "line": 359,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A>(index: number, a: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;",
          "<A, E, R>(ref: RefArray<A, E, R>, index: number, a: A): Effect.Effect<ReadonlyArray<A>, E, R>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 353,
              "column": 3
            },
            "end": {
              "line": 353,
              "column": 101
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 354,
              "column": 3
            },
            "end": {
              "line": 354,
              "column": 97
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const insertAt: {\n    <A>(index: number, a: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;\n    <A, E, R>(ref: RefArray<A, E, R>, index: number, a: A): Effect.Effect<ReadonlyArray<A>, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Insert a value at a particular index of a RefArray.",
    "sections": {
      "Why": "Expresses insert at as one ordered array transition; readers never observe the intermediate\ncollection used to build the result.",
      "Ownership and lifetime": "Running insert at performs one serialized array 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/RefArray.ts",
        "start": {
          "line": 352,
          "column": 14
        },
        "end": {
          "line": 359,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 353,
          "column": 3
        },
        "end": {
          "line": 353,
          "column": 101
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 354,
          "column": 3
        },
        "end": {
          "line": 354,
          "column": 97
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
