{
  "id": "@typed/fx/Fx#fromFailures",
  "canonicalId": "@typed/fx/Fx#fromFailures",
  "symbol": {
    "id": "@typed/fx/Fx#fromFailures",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "fromFailures",
    "kind": "constant",
    "signatures": [
      "export declare const fromFailures: <E>(failures: Iterable<E>) => import(\"../Fx.js\").Fx<never, E, never>;"
    ],
    "summary": "Creates an Fx from a collection of failures (errors).",
    "sections": {
      "Why": "Validation and batch operations can preserve every independent typed failure in a\nsingle Effect `Cause` rather than choosing one error or emitting partial values.\nEqual reasons are de-duplicated by `Cause.combine`.",
      "Ownership and lifetime": "The iterable is consumed eagerly when `fromFailures` is called. Running the result\nforwards the combined cause once, emits no values, and acquires no resources. An\nempty iterable produces the empty Cause."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport { fromFailures, observe } from \"@typed/fx/Fx\"\n\nconst failures = fromFailures([\"name\", \"email\"])\nconst program = observe(failures, () => Effect.void).pipe(\n  Effect.catch((error) => Effect.succeed(error))\n)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/constructors/fromFailures.ts",
      "line": 43
    },
    "since": "1.0.0",
    "category": "Failure sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#fromFailures",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "fromFailures",
    "qualifiedName": "fromFailures",
    "declarationKey": "declaration:c2f7a5e51b0f091ac70e8291",
    "family": "variable",
    "signatures": [
      "export declare const fromFailures: <E>(failures: Iterable<E>) => import(\"../Fx.js\").Fx<never, E, never>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/fromFailures.ts",
        "start": {
          "line": 43,
          "column": 14
        },
        "end": {
          "line": 43,
          "column": 77
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.fromFailures"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:c2f7a5e51b0f091ac70e8291",
    "name": "fromFailures",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const fromFailures: <E>(failures: Iterable<E>) => import(\"../Fx.js\").Fx<never, E, never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/constructors/fromFailures.ts",
            "start": {
              "line": 43,
              "column": 14
            },
            "end": {
              "line": 43,
              "column": 77
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const fromFailures: <E>(failures: Iterable<E>) => import(\"../Fx.js\").Fx<never, E, never>;"
    ],
    "typeParameters": [],
    "summary": "Creates an Fx from a collection of failures (errors).",
    "sections": {
      "Why": "Validation and batch operations can preserve every independent typed failure in a\nsingle Effect `Cause` rather than choosing one error or emitting partial values.\nEqual reasons are de-duplicated by `Cause.combine`.",
      "Ownership and lifetime": "The iterable is consumed eagerly when `fromFailures` is called. Running the result\nforwards the combined cause once, emits no values, and acquires no resources. An\nempty iterable produces the empty Cause."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport { fromFailures, observe } from \"@typed/fx/Fx\"\n\nconst failures = fromFailures([\"name\", \"email\"])\nconst program = observe(failures, () => Effect.void).pipe(\n  Effect.catch((error) => Effect.succeed(error))\n)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/fromFailures.ts",
        "start": {
          "line": 43,
          "column": 14
        },
        "end": {
          "line": 43,
          "column": 77
        }
      }
    ],
    "since": "1.0.0",
    "category": "Failure sources"
  }
}
