# die

Creates an Fx that immediately terminates with a defect (unexpected error).

## Signatures

```ts
export declare const die: (defect: unknown) => Fx<never, never, never>;
```

## Why

Defects represent unexpected, non-recoverable failures and remain distinct from
the typed `E` channel.

## Ownership and lifetime

Construction is inert. Each run delivers one defect cause to the sink and emits
no values; it acquires no resources.

## Examples

```ts
import { Cause, Effect } from "effect"
import { die, observe } from "@typed/fx/Fx"

const program = observe(die(new Error("broken")), () => Effect.void).pipe(
  Effect.catchCause((cause) => Effect.succeed(Cause.hasDies(cause)))
)
```
