{
  "id": "@typed/fx#Fx.die",
  "canonicalId": "@typed/fx/Fx#die",
  "symbol": {
    "id": "@typed/fx#Fx.die",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.die",
    "kind": "constant",
    "signatures": [
      "export declare const die: (defect: unknown) => Fx<never, never, never>;"
    ],
    "summary": "Creates an Fx that immediately terminates with a defect (unexpected error).",
    "sections": {
      "Why": "Defects represent unexpected, non-recoverable failures and remain distinct from\nthe typed `E` channel.",
      "Ownership and lifetime": "Construction is inert. Each run delivers one defect cause to the sink and emits\nno values; it acquires no resources."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause, Effect } from \"effect\"\nimport { die, observe } from \"@typed/fx/Fx\"\n\nconst program = observe(die(new Error(\"broken\")), () => Effect.void).pipe(\n  Effect.catchCause((cause) => Effect.succeed(Cause.hasDies(cause)))\n)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/constructors/die.ts",
      "line": 35
    },
    "since": "1.0.0",
    "category": "Failure sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.die",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.die",
    "declarationKey": "declaration:c290ec073571bdebaf1d052e",
    "family": "variable",
    "signatures": [
      "export declare const die: (defect: unknown) => Fx<never, never, never>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/die.ts",
        "start": {
          "line": 35,
          "column": 14
        },
        "end": {
          "line": 38,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#die"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:c290ec073571bdebaf1d052e"
  },
  "declaration": {
    "declarationKey": "declaration:c290ec073571bdebaf1d052e",
    "name": "die",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const die: (defect: unknown) => Fx<never, never, never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/constructors/die.ts",
            "start": {
              "line": 35,
              "column": 14
            },
            "end": {
              "line": 38,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const die: (defect: unknown) => Fx<never, never, never>;"
    ],
    "typeParameters": [],
    "summary": "Creates an Fx that immediately terminates with a defect (unexpected error).",
    "sections": {
      "Why": "Defects represent unexpected, non-recoverable failures and remain distinct from\nthe typed `E` channel.",
      "Ownership and lifetime": "Construction is inert. Each run delivers one defect cause to the sink and emits\nno values; it acquires no resources."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause, Effect } from \"effect\"\nimport { die, observe } from \"@typed/fx/Fx\"\n\nconst program = observe(die(new Error(\"broken\")), () => Effect.void).pipe(\n  Effect.catchCause((cause) => Effect.succeed(Cause.hasDies(cause)))\n)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/die.ts",
        "start": {
          "line": 35,
          "column": 14
        },
        "end": {
          "line": 38,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Failure sources"
  }
}
