{
  "id": "@typed/fx/Fx#causes",
  "canonicalId": "@typed/fx/Fx#causes",
  "symbol": {
    "id": "@typed/fx/Fx#causes",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "causes",
    "kind": "constant",
    "signatures": [
      "export declare const causes: <A, E, R>(fx: Fx<A, E, R>) => Fx<Cause.Cause<E>, never, R>;"
    ],
    "summary": "Emits the source's terminal failure cause and discards every successful value.",
    "sections": {
      "Why": "Failure telemetry and supervision often need the complete Effect `Cause`\nwithout treating that cause as another failure. Materializing only the\nfailure side makes those pipelines ordinary, infallible Fx values.",
      "Ownership and lifetime": "The source is subscribed once. Success values are dropped in arrival order;\na terminal cause is emitted once and the returned Fx completes without a\ntyped error. Defects and interruption are retained inside the emitted cause.\nNo resource is acquired beyond the source subscription."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause } from \"effect\"\nimport { causes } from \"@typed/fx/Fx\"\nimport { failCause } from \"@typed/fx/Fx\"\n\nconst failures = causes(failCause(Cause.fail(\"offline\")))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/causes.ts",
      "line": 39
    },
    "since": "1.0.0",
    "category": "Errors and recovery"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#causes",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "causes",
    "qualifiedName": "causes",
    "declarationKey": "declaration:1db29b72149721c9b1b9d1bd",
    "family": "variable",
    "signatures": [
      "export declare const causes: <A, E, R>(fx: Fx<A, E, R>) => Fx<Cause.Cause<E>, never, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/causes.ts",
        "start": {
          "line": 39,
          "column": 14
        },
        "end": {
          "line": 46,
          "column": 4
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.causes"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:1db29b72149721c9b1b9d1bd",
    "name": "causes",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const causes: <A, E, R>(fx: Fx<A, E, R>) => Fx<Cause.Cause<E>, never, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/causes.ts",
            "start": {
              "line": 39,
              "column": 14
            },
            "end": {
              "line": 46,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const causes: <A, E, R>(fx: Fx<A, E, R>) => Fx<Cause.Cause<E>, never, R>;"
    ],
    "typeParameters": [],
    "summary": "Emits the source's terminal failure cause and discards every successful value.",
    "sections": {
      "Why": "Failure telemetry and supervision often need the complete Effect `Cause`\nwithout treating that cause as another failure. Materializing only the\nfailure side makes those pipelines ordinary, infallible Fx values.",
      "Ownership and lifetime": "The source is subscribed once. Success values are dropped in arrival order;\na terminal cause is emitted once and the returned Fx completes without a\ntyped error. Defects and interruption are retained inside the emitted cause.\nNo resource is acquired beyond the source subscription."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause } from \"effect\"\nimport { causes } from \"@typed/fx/Fx\"\nimport { failCause } from \"@typed/fx/Fx\"\n\nconst failures = causes(failCause(Cause.fail(\"offline\")))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/causes.ts",
        "start": {
          "line": 39,
          "column": 14
        },
        "end": {
          "line": 46,
          "column": 4
        }
      }
    ],
    "since": "1.0.0",
    "category": "Errors and recovery"
  }
}
