{
  "id": "@typed/fx/Sink#mapInputEffect",
  "canonicalId": "@typed/fx/Sink#mapInputEffect",
  "symbol": {
    "id": "@typed/fx/Sink#mapInputEffect",
    "packageName": "@typed/fx",
    "moduleName": "Sink",
    "exportName": "mapInputEffect",
    "kind": "constant",
    "signatures": [
      "export declare const mapInputEffect: {\n    <B, A, E2, R2>(f: (b: B) => Effect.Effect<A, E2, R2>): <E, R>(sink: Sink<A, E | E2, R>) => Sink<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(sink: Sink<A, E | E2, R>, f: (b: B) => Effect.Effect<A, E2, R2>): Sink<B, E | E2, R | R2>;\n};"
    ],
    "summary": "Alias for `mapEffect`, named for the input-side direction of the effectful transformation.",
    "sections": {
      "Why": "The name highlights that Sink composition is contravariant in successful input.",
      "Ownership and lifetime": "It is exactly `mapEffect`: one Effect per input, with the same failures, services, ordering, and\ninterruption behavior."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Sink from \"@typed/fx/Sink\"\nconst sink = Sink.mapInputEffect(Sink.make(Effect.logError, Effect.log), (n: number) => Effect.succeed(String(n)))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Sink/combinators.ts",
      "line": 1295
    },
    "since": "1.0.0",
    "category": "Transforming inputs"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Sink#mapInputEffect",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "Sink",
    "consumerSpecifier": "@typed/fx/Sink",
    "exportName": "mapInputEffect",
    "qualifiedName": "mapInputEffect",
    "declarationKey": "declaration:3143b443c6a9cd4f964e4e79",
    "family": "variable",
    "signatures": [
      "export declare const mapInputEffect: {\n    <B, A, E2, R2>(f: (b: B) => Effect.Effect<A, E2, R2>): <E, R>(sink: Sink<A, E | E2, R>) => Sink<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(sink: Sink<A, E | E2, R>, f: (b: B) => Effect.Effect<A, E2, R2>): Sink<B, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Sink/combinators.ts",
        "start": {
          "line": 1295,
          "column": 14
        },
        "end": {
          "line": 1295,
          "column": 40
        }
      },
      {
        "file": "packages/fx/dist/Sink/combinators.d.ts",
        "start": {
          "line": 627,
          "column": 5
        },
        "end": {
          "line": 627,
          "column": 120
        }
      },
      {
        "file": "packages/fx/dist/Sink/combinators.d.ts",
        "start": {
          "line": 628,
          "column": 5
        },
        "end": {
          "line": 628,
          "column": 116
        }
      }
    ],
    "aliases": [
      "@typed/fx#Sink.mapInputEffect"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:3143b443c6a9cd4f964e4e79",
    "name": "mapInputEffect",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const mapInputEffect: {\n    <B, A, E2, R2>(f: (b: B) => Effect.Effect<A, E2, R2>): <E, R>(sink: Sink<A, E | E2, R>) => Sink<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(sink: Sink<A, E | E2, R>, f: (b: B) => Effect.Effect<A, E2, R2>): Sink<B, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Sink/combinators.ts",
            "start": {
              "line": 1295,
              "column": 14
            },
            "end": {
              "line": 1295,
              "column": 40
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B, A, E2, R2>(f: (b: B) => Effect.Effect<A, E2, R2>): <E, R>(sink: Sink<A, E | E2, R>) => Sink<B, E | E2, R | R2>;",
          "<A, E, R, B, E2, R2>(sink: Sink<A, E | E2, R>, f: (b: B) => Effect.Effect<A, E2, R2>): Sink<B, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "B",
          "A",
          "E2",
          "R2",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/dist/Sink/combinators.d.ts",
            "start": {
              "line": 627,
              "column": 5
            },
            "end": {
              "line": 627,
              "column": 120
            }
          },
          {
            "file": "packages/fx/dist/Sink/combinators.d.ts",
            "start": {
              "line": 628,
              "column": 5
            },
            "end": {
              "line": 628,
              "column": 116
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const mapInputEffect: {\n    <B, A, E2, R2>(f: (b: B) => Effect.Effect<A, E2, R2>): <E, R>(sink: Sink<A, E | E2, R>) => Sink<B, E | E2, R | R2>;\n    <A, E, R, B, E2, R2>(sink: Sink<A, E | E2, R>, f: (b: B) => Effect.Effect<A, E2, R2>): Sink<B, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "B",
      "A",
      "E2",
      "R2",
      "E",
      "R"
    ],
    "summary": "Alias for `mapEffect`, named for the input-side direction of the effectful transformation.",
    "sections": {
      "Why": "The name highlights that Sink composition is contravariant in successful input.",
      "Ownership and lifetime": "It is exactly `mapEffect`: one Effect per input, with the same failures, services, ordering, and\ninterruption behavior."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Sink from \"@typed/fx/Sink\"\nconst sink = Sink.mapInputEffect(Sink.make(Effect.logError, Effect.log), (n: number) => Effect.succeed(String(n)))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Sink/combinators.ts",
        "start": {
          "line": 1295,
          "column": 14
        },
        "end": {
          "line": 1295,
          "column": 40
        }
      },
      {
        "file": "packages/fx/dist/Sink/combinators.d.ts",
        "start": {
          "line": 627,
          "column": 5
        },
        "end": {
          "line": 627,
          "column": 120
        }
      },
      {
        "file": "packages/fx/dist/Sink/combinators.d.ts",
        "start": {
          "line": 628,
          "column": 5
        },
        "end": {
          "line": 628,
          "column": 116
        }
      }
    ],
    "since": "1.0.0",
    "category": "Transforming inputs"
  }
}
