{
  "id": "@typed/guard#map",
  "canonicalId": "@typed/guard#map",
  "symbol": {
    "id": "@typed/guard#map",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "map",
    "kind": "constant",
    "signatures": [
      "export declare const map: {\n    <O, B>(f: (o: O) => B): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => B): Guard<I, B, E, R>;\n};"
    ],
    "summary": "Maps matched output synchronously while preserving non-match and Effect channels.",
    "sections": {
      "Why": "Pure output adaptation should not add errors or services and should never run for `None`.",
      "Ownership and lifetime": "Construction acquires no resources; the callback runs once for each `Some` during Effect execution."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { liftPredicate, map } from \"@typed/guard\"\nconst length = map(liftPredicate((u: unknown): u is string => typeof u === \"string\"), (s) => s.length)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 360
    },
    "since": "1.0.0",
    "category": "Value transformations"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#map",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "map",
    "qualifiedName": "map",
    "declarationKey": "declaration:f7b3d94842ae8e12f327d023",
    "family": "variable",
    "signatures": [
      "export declare const map: {\n    <O, B>(f: (o: O) => B): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => B): Guard<I, B, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 360,
          "column": 14
        },
        "end": {
          "line": 371,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 361,
          "column": 3
        },
        "end": {
          "line": 361,
          "column": 89
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 362,
          "column": 3
        },
        "end": {
          "line": 362,
          "column": 85
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:f7b3d94842ae8e12f327d023",
    "name": "map",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const map: {\n    <O, B>(f: (o: O) => B): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => B): Guard<I, B, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 360,
              "column": 14
            },
            "end": {
              "line": 371,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<O, B>(f: (o: O) => B): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;",
          "<I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => B): Guard<I, B, E, R>;"
        ],
        "typeParameters": [
          "O",
          "B",
          "I",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 361,
              "column": 3
            },
            "end": {
              "line": 361,
              "column": 89
            }
          },
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 362,
              "column": 3
            },
            "end": {
              "line": 362,
              "column": 85
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const map: {\n    <O, B>(f: (o: O) => B): <I, R, E>(guard: GuardInput<I, O, E, R>) => Guard<I, B, E, R>;\n    <I, O, E, R, B>(guard: GuardInput<I, O, E, R>, f: (o: O) => B): Guard<I, B, E, R>;\n};"
    ],
    "typeParameters": [
      "O",
      "B",
      "I",
      "E",
      "R"
    ],
    "summary": "Maps matched output synchronously while preserving non-match and Effect channels.",
    "sections": {
      "Why": "Pure output adaptation should not add errors or services and should never run for `None`.",
      "Ownership and lifetime": "Construction acquires no resources; the callback runs once for each `Some` during Effect execution."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { liftPredicate, map } from \"@typed/guard\"\nconst length = map(liftPredicate((u: unknown): u is string => typeof u === \"string\"), (s) => s.length)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 360,
          "column": 14
        },
        "end": {
          "line": 371,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 361,
          "column": 3
        },
        "end": {
          "line": 361,
          "column": 89
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 362,
          "column": 3
        },
        "end": {
          "line": 362,
          "column": 85
        }
      }
    ],
    "since": "1.0.0",
    "category": "Value transformations"
  }
}
