{
  "id": "@typed/fx#Fx.sliceEffect",
  "canonicalId": "@typed/fx/Fx#sliceEffect",
  "symbol": {
    "id": "@typed/fx#Fx.sliceEffect",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.sliceEffect",
    "kind": "constant",
    "signatures": [
      "export declare const sliceEffect: {\n    <E2, R2>(bounds: Effect.Effect<Bounds, E2, R2>): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, E2, R2>(fx: Fx<A, E, R>, bounds: Effect.Effect<Bounds, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
    ],
    "summary": "Slices an Fx with bounds produced by an Effect.",
    "sections": {
      "Why": "`sliceEffect` delays selection of the bounds until consumption, allowing configuration to fail or\nrequire services before the source is subscribed.",
      "Ownership and lifetime": "The bounds Effect runs once per consumer. If it fails or is interrupted the source never starts;\nafter success, ordinary `slice` owns only its per-run counters."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport { Fx } from \"@typed/fx\"\n\nconst page = Fx.fromIterable([1, 2, 3]).pipe(Fx.sliceEffect(Effect.succeed({ skip: 1, take: 1 })))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/slice.ts",
      "line": 124
    },
    "since": "1.0.0",
    "category": "Selecting values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.sliceEffect",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.sliceEffect",
    "declarationKey": "declaration:d8688382cc99fc79a5c0f8b1",
    "family": "variable",
    "signatures": [
      "export declare const sliceEffect: {\n    <E2, R2>(bounds: Effect.Effect<Bounds, E2, R2>): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, E2, R2>(fx: Fx<A, E, R>, bounds: Effect.Effect<Bounds, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 124,
          "column": 14
        },
        "end": {
          "line": 135,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 125,
          "column": 3
        },
        "end": {
          "line": 127,
          "column": 58
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 128,
          "column": 3
        },
        "end": {
          "line": 128,
          "column": 100
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#sliceEffect"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:d8688382cc99fc79a5c0f8b1"
  },
  "declaration": {
    "declarationKey": "declaration:d8688382cc99fc79a5c0f8b1",
    "name": "sliceEffect",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const sliceEffect: {\n    <E2, R2>(bounds: Effect.Effect<Bounds, E2, R2>): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, E2, R2>(fx: Fx<A, E, R>, bounds: Effect.Effect<Bounds, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/slice.ts",
            "start": {
              "line": 124,
              "column": 14
            },
            "end": {
              "line": 135,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<E2, R2>(bounds: Effect.Effect<Bounds, E2, R2>): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;",
          "<A, E, R, E2, R2>(fx: Fx<A, E, R>, bounds: Effect.Effect<Bounds, E2, R2>): Fx<A, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "E2",
          "R2",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/slice.ts",
            "start": {
              "line": 125,
              "column": 3
            },
            "end": {
              "line": 127,
              "column": 58
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/slice.ts",
            "start": {
              "line": 128,
              "column": 3
            },
            "end": {
              "line": 128,
              "column": 100
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const sliceEffect: {\n    <E2, R2>(bounds: Effect.Effect<Bounds, E2, R2>): <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, E2, R2>(fx: Fx<A, E, R>, bounds: Effect.Effect<Bounds, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "E2",
      "R2",
      "A",
      "E",
      "R"
    ],
    "summary": "Slices an Fx with bounds produced by an Effect.",
    "sections": {
      "Why": "`sliceEffect` delays selection of the bounds until consumption, allowing configuration to fail or\nrequire services before the source is subscribed.",
      "Ownership and lifetime": "The bounds Effect runs once per consumer. If it fails or is interrupted the source never starts;\nafter success, ordinary `slice` owns only its per-run counters."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport { Fx } from \"@typed/fx\"\n\nconst page = Fx.fromIterable([1, 2, 3]).pipe(Fx.sliceEffect(Effect.succeed({ skip: 1, take: 1 })))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 124,
          "column": 14
        },
        "end": {
          "line": 135,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 125,
          "column": 3
        },
        "end": {
          "line": 127,
          "column": 58
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/slice.ts",
        "start": {
          "line": 128,
          "column": 3
        },
        "end": {
          "line": 128,
          "column": 100
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting values"
  }
}
