{
  "id": "@typed/fx#Fx.append",
  "canonicalId": "@typed/fx/Fx#append",
  "symbol": {
    "id": "@typed/fx#Fx.append",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.append",
    "kind": "constant",
    "signatures": [
      "export declare const append: {\n    <B>(value: B): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B, E, R>;\n    <A, E, R, B>(fx: Fx<A, E, R>, value: B): Fx<A | B, E, R>;\n};"
    ],
    "summary": "Appends a value to the end of an Fx.",
    "sections": {
      "Why": "`append` is the constant-value specialization of {@link continueWith}. It\nemits a terminal marker after the source run returns, including after a source\nfailure has been delivered to the Sink.",
      "Ownership and lifetime": "The value is emitted exactly once after every source success and any delivered\nsource failure. Interruption or a defect that prevents the source run from\nreturning suppresses it. No resource is acquired; the source error, services,\nand observation lifetime are unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nimport { Effect } from \"effect\"\n\nconst framed = Fx.append(Fx.fromIterable([1, 2]), \"done\")\nEffect.runPromise(Fx.collectAll(framed)).then(console.log)\n// [1, 2, \"done\"]"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/continueWith.ts",
      "line": 95
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.append",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.append",
    "declarationKey": "declaration:3d96e36e42dccf8f03cc6abb",
    "family": "variable",
    "signatures": [
      "export declare const append: {\n    <B>(value: B): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B, E, R>;\n    <A, E, R, B>(fx: Fx<A, E, R>, value: B): Fx<A | B, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 95,
          "column": 14
        },
        "end": {
          "line": 103,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 96,
          "column": 3
        },
        "end": {
          "line": 96,
          "column": 64
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 98,
          "column": 3
        },
        "end": {
          "line": 98,
          "column": 60
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#append"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:3d96e36e42dccf8f03cc6abb"
  },
  "declaration": {
    "declarationKey": "declaration:3d96e36e42dccf8f03cc6abb",
    "name": "append",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const append: {\n    <B>(value: B): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B, E, R>;\n    <A, E, R, B>(fx: Fx<A, E, R>, value: B): Fx<A | B, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/continueWith.ts",
            "start": {
              "line": 95,
              "column": 14
            },
            "end": {
              "line": 103,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B>(value: B): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B, E, R>;",
          "<A, E, R, B>(fx: Fx<A, E, R>, value: B): Fx<A | B, E, R>;"
        ],
        "typeParameters": [
          "B",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/continueWith.ts",
            "start": {
              "line": 96,
              "column": 3
            },
            "end": {
              "line": 96,
              "column": 64
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/continueWith.ts",
            "start": {
              "line": 98,
              "column": 3
            },
            "end": {
              "line": 98,
              "column": 60
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const append: {\n    <B>(value: B): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B, E, R>;\n    <A, E, R, B>(fx: Fx<A, E, R>, value: B): Fx<A | B, E, R>;\n};"
    ],
    "typeParameters": [
      "B",
      "A",
      "E",
      "R"
    ],
    "summary": "Appends a value to the end of an Fx.",
    "sections": {
      "Why": "`append` is the constant-value specialization of {@link continueWith}. It\nemits a terminal marker after the source run returns, including after a source\nfailure has been delivered to the Sink.",
      "Ownership and lifetime": "The value is emitted exactly once after every source success and any delivered\nsource failure. Interruption or a defect that prevents the source run from\nreturning suppresses it. No resource is acquired; the source error, services,\nand observation lifetime are unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nimport { Effect } from \"effect\"\n\nconst framed = Fx.append(Fx.fromIterable([1, 2]), \"done\")\nEffect.runPromise(Fx.collectAll(framed)).then(console.log)\n// [1, 2, \"done\"]"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 95,
          "column": 14
        },
        "end": {
          "line": 103,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 96,
          "column": 3
        },
        "end": {
          "line": 96,
          "column": 64
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 98,
          "column": 3
        },
        "end": {
          "line": 98,
          "column": 60
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
