{
  "id": "@typed/fx/Fx#as",
  "canonicalId": "@typed/fx/Fx#as",
  "symbol": {
    "id": "@typed/fx/Fx#as",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "as",
    "kind": "constant",
    "signatures": [
      "export declare const as: {\n    <B>(b: B): <A, E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, b: B): Fx<B, E, R>;\n};"
    ],
    "summary": "Replaces all emitted values from the Fx with the provided value `b`.",
    "sections": {
      "Why": "`as` preserves upstream timing and cardinality while intentionally discarding each value. It is\nuseful when occurrence matters but payload does not.",
      "Ownership and lifetime": "This operation is a pure `map`; it acquires no resources, retains no state, and forwards source\nfailure, completion, services, and interruption unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst refreshes = Fx.fromIterable([\"click\", \"retry\"]).pipe(Fx.as(\"refresh\" as const))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/map.ts",
      "line": 63
    },
    "since": "1.0.0",
    "category": "Transforming values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#as",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "as",
    "qualifiedName": "as",
    "declarationKey": "declaration:8e88a0ebaf137dea9d24c906",
    "family": "variable",
    "signatures": [
      "export declare const as: {\n    <B>(b: B): <A, E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, b: B): Fx<B, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 63,
          "column": 14
        },
        "end": {
          "line": 66,
          "column": 86
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 64,
          "column": 3
        },
        "end": {
          "line": 64,
          "column": 58
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 65,
          "column": 3
        },
        "end": {
          "line": 65,
          "column": 54
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.as"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:8e88a0ebaf137dea9d24c906",
    "name": "as",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const as: {\n    <B>(b: B): <A, E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, b: B): Fx<B, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/map.ts",
            "start": {
              "line": 63,
              "column": 14
            },
            "end": {
              "line": 66,
              "column": 86
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B>(b: B): <A, E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;",
          "<A, E, R, B>(self: Fx<A, E, R>, b: B): Fx<B, E, R>;"
        ],
        "typeParameters": [
          "B",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/map.ts",
            "start": {
              "line": 64,
              "column": 3
            },
            "end": {
              "line": 64,
              "column": 58
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/map.ts",
            "start": {
              "line": 65,
              "column": 3
            },
            "end": {
              "line": 65,
              "column": 54
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const as: {\n    <B>(b: B): <A, E, R>(self: Fx<A, E, R>) => Fx<B, E, R>;\n    <A, E, R, B>(self: Fx<A, E, R>, b: B): Fx<B, E, R>;\n};"
    ],
    "typeParameters": [
      "B",
      "A",
      "E",
      "R"
    ],
    "summary": "Replaces all emitted values from the Fx with the provided value `b`.",
    "sections": {
      "Why": "`as` preserves upstream timing and cardinality while intentionally discarding each value. It is\nuseful when occurrence matters but payload does not.",
      "Ownership and lifetime": "This operation is a pure `map`; it acquires no resources, retains no state, and forwards source\nfailure, completion, services, and interruption unchanged."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\n\nconst refreshes = Fx.fromIterable([\"click\", \"retry\"]).pipe(Fx.as(\"refresh\" as const))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 63,
          "column": 14
        },
        "end": {
          "line": 66,
          "column": 86
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 64,
          "column": 3
        },
        "end": {
          "line": 64,
          "column": 58
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/map.ts",
        "start": {
          "line": 65,
          "column": 3
        },
        "end": {
          "line": 65,
          "column": 54
        }
      }
    ],
    "since": "1.0.0",
    "category": "Transforming values"
  }
}
