{
  "id": "@typed/async-data#getError",
  "canonicalId": "@typed/async-data#getError",
  "symbol": {
    "id": "@typed/async-data#getError",
    "packageName": "@typed/async-data",
    "moduleName": ".",
    "exportName": "getError",
    "kind": "function",
    "signatures": [
      "export declare function getError<A, E>(data: AsyncData<A, E>): Option.Option<E>;"
    ],
    "summary": "Returns the first typed failure found in a Failure Cause.",
    "sections": {
      "Why": "This convenience accessor intentionally excludes defects and interruption; use `getCause` when those distinctions matter.",
      "Ownership and lifetime": "This pure lookup acquires no resources and does not retain the state."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { failure, getError } from \"@typed/async-data\"\nimport { Cause } from \"effect\"\nconst error = getError(failure(Cause.fail(\"offline\")))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/async-data/src/index.ts",
      "line": 910
    },
    "since": "1.0.0",
    "category": "State extraction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/async-data#getError",
    "packageName": "@typed/async-data",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/async-data",
    "exportName": "getError",
    "qualifiedName": "getError",
    "declarationKey": "declaration:94c5f2a4609bac740a361333",
    "family": "function",
    "signatures": [
      "export declare function getError<A, E>(data: AsyncData<A, E>): Option.Option<E>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/async-data/src/index.ts",
        "start": {
          "line": 910,
          "column": 1
        },
        "end": {
          "line": 918,
          "column": 2
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:94c5f2a4609bac740a361333",
    "name": "getError",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function getError<A, E>(data: AsyncData<A, E>): Option.Option<E>;"
        ],
        "typeParameters": [
          "A",
          "E"
        ],
        "sourceSpans": [
          {
            "file": "packages/async-data/src/index.ts",
            "start": {
              "line": 910,
              "column": 1
            },
            "end": {
              "line": 918,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function getError<A, E>(data: AsyncData<A, E>): Option.Option<E>;"
    ],
    "typeParameters": [
      "A",
      "E"
    ],
    "summary": "Returns the first typed failure found in a Failure Cause.",
    "sections": {
      "Why": "This convenience accessor intentionally excludes defects and interruption; use `getCause` when those distinctions matter.",
      "Ownership and lifetime": "This pure lookup acquires no resources and does not retain the state."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { failure, getError } from \"@typed/async-data\"\nimport { Cause } from \"effect\"\nconst error = getError(failure(Cause.fail(\"offline\")))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/async-data/src/index.ts",
        "start": {
          "line": 910,
          "column": 1
        },
        "end": {
          "line": 918,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "State extraction"
  }
}
