{
  "id": "@typed/fx#Fx.map",
  "canonicalId": "@typed/fx/Fx#map",
  "symbol": {
    "id": "@typed/fx#Fx.map",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.map",
    "kind": "constant",
    "signatures": [
      "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, f: (a: A) => B): Fx<B, E, R>;\n};"
    ],
    "summary": "Transforms the elements of an Fx using a provided function.",
    "sections": {
      "Why": "`map` changes each pushed value without changing when values arrive. It emits exactly once for\nevery upstream success, in upstream order; the callback is synchronous and cannot add failures\nor services.",
      "Ownership and lifetime": "This operation acquires no resources and retains no state. Running the result runs the source in\nthe same Scope, and interruption or failure is forwarded unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst labels = Fx.fromIterable([1, 2, 3]).pipe(Fx.map((n) => `item-${n}`))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/map.ts",
      "line": 31
    },
    "since": "1.0.0",
    "category": "Transforming values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.map",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.map",
    "declarationKey": "declaration:3da48f37090df898cc417bac",
    "family": "variable",
    "signatures": [
      "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, f: (a: A) => B): Fx<B, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 31,
          "column": 14
        },
        "end": {
          "line": 37,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 32,
          "column": 3
        },
        "end": {
          "line": 32,
          "column": 68
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 34,
          "column": 3
        },
        "end": {
          "line": 34,
          "column": 64
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#map"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:3da48f37090df898cc417bac"
  },
  "declaration": {
    "declarationKey": "declaration:3da48f37090df898cc417bac",
    "name": "map",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, f: (a: A) => B): Fx<B, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/map.ts",
            "start": {
              "line": 31,
              "column": 14
            },
            "end": {
              "line": 37,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A, B>(f: (a: A) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;",
          "<A, E, R, B>(self: Fx<A, E, R>, f: (a: A) => B): Fx<B, E, R>;"
        ],
        "typeParameters": [
          "A",
          "B",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/map.ts",
            "start": {
              "line": 32,
              "column": 3
            },
            "end": {
              "line": 32,
              "column": 68
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/map.ts",
            "start": {
              "line": 34,
              "column": 3
            },
            "end": {
              "line": 34,
              "column": 64
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, f: (a: A) => B): Fx<B, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "B",
      "E",
      "R"
    ],
    "summary": "Transforms the elements of an Fx using a provided function.",
    "sections": {
      "Why": "`map` changes each pushed value without changing when values arrive. It emits exactly once for\nevery upstream success, in upstream order; the callback is synchronous and cannot add failures\nor services.",
      "Ownership and lifetime": "This operation acquires no resources and retains no state. Running the result runs the source in\nthe same Scope, and interruption or failure is forwarded unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst labels = Fx.fromIterable([1, 2, 3]).pipe(Fx.map((n) => `item-${n}`))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 31,
          "column": 14
        },
        "end": {
          "line": 37,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 32,
          "column": 3
        },
        "end": {
          "line": 32,
          "column": 68
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 34,
          "column": 3
        },
        "end": {
          "line": 34,
          "column": 64
        }
      }
    ],
    "since": "1.0.0",
    "category": "Transforming values"
  }
}
