{
  "id": "@typed/guard#mapEffect",
  "canonicalId": "@typed/guard#mapEffect",
  "symbol": {
    "id": "@typed/guard#mapEffect",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "mapEffect",
    "kind": "constant",
    "signatures": [
      "export declare const mapEffect: {\n    <O, B, E2, R2>(f: (o: O) => Effect.Effect<B, E2, R2>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(guard: GuardInput<I, O, E, R>, f: (o: O) => Effect.Effect<B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
    ],
    "summary": "Maps matched output with an Effect while preserving `None`.",
    "sections": {
      "Why": "Effectful mapping can add typed errors and services without changing non-match into failure.",
      "Ownership and lifetime": "Construction acquires no resources; the mapping Effect starts only after the source Guard produces `Some`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { liftPredicate, mapEffect } from \"@typed/guard\"\nimport { Effect } from \"effect\"\nconst length = mapEffect(liftPredicate((u: unknown): u is string => typeof u === \"string\"), (s) => Effect.succeed(s.length))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 320
    },
    "since": "1.0.0",
    "category": "Value transformations"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#mapEffect",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "mapEffect",
    "qualifiedName": "mapEffect",
    "declarationKey": "declaration:9395dfecfe7e8ac72306f609",
    "family": "variable",
    "signatures": [
      "export declare const mapEffect: {\n    <O, B, E2, R2>(f: (o: O) => Effect.Effect<B, E2, R2>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(guard: GuardInput<I, O, E, R>, f: (o: O) => Effect.Effect<B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 320,
          "column": 14
        },
        "end": {
          "line": 343,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 321,
          "column": 3
        },
        "end": {
          "line": 323,
          "column": 78
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 324,
          "column": 3
        },
        "end": {
          "line": 327,
          "column": 34
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:9395dfecfe7e8ac72306f609",
    "name": "mapEffect",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const mapEffect: {\n    <O, B, E2, R2>(f: (o: O) => Effect.Effect<B, E2, R2>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(guard: GuardInput<I, O, E, R>, f: (o: O) => Effect.Effect<B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 320,
              "column": 14
            },
            "end": {
              "line": 343,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<O, B, E2, R2>(f: (o: O) => Effect.Effect<B, E2, R2>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;",
          "<I, O, E, R, B, E2, R2>(guard: GuardInput<I, O, E, R>, f: (o: O) => Effect.Effect<B, E2, R2>): Guard<I, B, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "O",
          "B",
          "E2",
          "R2",
          "I",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 321,
              "column": 3
            },
            "end": {
              "line": 323,
              "column": 78
            }
          },
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 324,
              "column": 3
            },
            "end": {
              "line": 327,
              "column": 34
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const mapEffect: {\n    <O, B, E2, R2>(f: (o: O) => Effect.Effect<B, E2, R2>): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(guard: GuardInput<I, O, E, R>, f: (o: O) => Effect.Effect<B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "O",
      "B",
      "E2",
      "R2",
      "I",
      "E",
      "R"
    ],
    "summary": "Maps matched output with an Effect while preserving `None`.",
    "sections": {
      "Why": "Effectful mapping can add typed errors and services without changing non-match into failure.",
      "Ownership and lifetime": "Construction acquires no resources; the mapping Effect starts only after the source Guard produces `Some`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { liftPredicate, mapEffect } from \"@typed/guard\"\nimport { Effect } from \"effect\"\nconst length = mapEffect(liftPredicate((u: unknown): u is string => typeof u === \"string\"), (s) => Effect.succeed(s.length))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 320,
          "column": 14
        },
        "end": {
          "line": 343,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 321,
          "column": 3
        },
        "end": {
          "line": 323,
          "column": 78
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 324,
          "column": 3
        },
        "end": {
          "line": 327,
          "column": 34
        }
      }
    ],
    "since": "1.0.0",
    "category": "Value transformations"
  }
}
