{
  "id": "@typed/async-data#getCause",
  "canonicalId": "@typed/async-data#getCause",
  "symbol": {
    "id": "@typed/async-data#getCause",
    "packageName": "@typed/async-data",
    "moduleName": ".",
    "exportName": "getCause",
    "kind": "function",
    "signatures": [
      "export declare function getCause<A, E>(data: AsyncData<A, E>): Option.Option<Cause.Cause<E>>;"
    ],
    "summary": "Returns the complete Cause only when the current state is a Failure.",
    "sections": {
      "Why": "The accessor keeps typed errors, defects, and interruption intact for callers that need full failure diagnostics.",
      "Ownership and lifetime": "This pure lookup acquires no resources and returns a reference to the persistent Cause."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { failure, getCause } from \"@typed/async-data\"\nimport { Cause } from \"effect\"\nconst cause = getCause(failure(Cause.fail(\"offline\")))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/async-data/src/index.ts",
      "line": 884
    },
    "since": "1.0.0",
    "category": "State extraction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/async-data#getCause",
    "packageName": "@typed/async-data",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/async-data",
    "exportName": "getCause",
    "qualifiedName": "getCause",
    "declarationKey": "declaration:bf11f6bc36647f2be1323b80",
    "family": "function",
    "signatures": [
      "export declare function getCause<A, E>(data: AsyncData<A, E>): Option.Option<Cause.Cause<E>>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/async-data/src/index.ts",
        "start": {
          "line": 884,
          "column": 1
        },
        "end": {
          "line": 892,
          "column": 2
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:bf11f6bc36647f2be1323b80",
    "name": "getCause",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function getCause<A, E>(data: AsyncData<A, E>): Option.Option<Cause.Cause<E>>;"
        ],
        "typeParameters": [
          "A",
          "E"
        ],
        "sourceSpans": [
          {
            "file": "packages/async-data/src/index.ts",
            "start": {
              "line": 884,
              "column": 1
            },
            "end": {
              "line": 892,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function getCause<A, E>(data: AsyncData<A, E>): Option.Option<Cause.Cause<E>>;"
    ],
    "typeParameters": [
      "A",
      "E"
    ],
    "summary": "Returns the complete Cause only when the current state is a Failure.",
    "sections": {
      "Why": "The accessor keeps typed errors, defects, and interruption intact for callers that need full failure diagnostics.",
      "Ownership and lifetime": "This pure lookup acquires no resources and returns a reference to the persistent Cause."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { failure, getCause } from \"@typed/async-data\"\nimport { Cause } from \"effect\"\nconst cause = getCause(failure(Cause.fail(\"offline\")))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/async-data/src/index.ts",
        "start": {
          "line": 884,
          "column": 1
        },
        "end": {
          "line": 892,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "State extraction"
  }
}
