{
  "id": "@typed/fx/RefOption#map",
  "canonicalId": "@typed/fx/RefOption#map",
  "symbol": {
    "id": "@typed/fx/RefOption#map",
    "packageName": "@typed/fx",
    "moduleName": "RefOption",
    "exportName": "map",
    "kind": "constant",
    "signatures": [
      "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<B>, E, R>;\n    <A, E, R, B>(ref: RefOption<A, E, R>, f: (a: A) => B): RefSubject.Computed<Option.Option<B>, E, R>;\n};"
    ],
    "summary": "Map the value inside the Option of a RefOption.",
    "sections": {
      "Why": "Projects option state with map for both current reads and future pushes, avoiding a second\nmutable cache of the derived value.",
      "Ownership and lifetime": "The map view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefOption.ts",
      "line": 135
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefOption#map",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "RefOption",
    "consumerSpecifier": "@typed/fx/RefOption",
    "exportName": "map",
    "qualifiedName": "map",
    "declarationKey": "declaration:8b0b990f6835d3f8f17f82c2",
    "family": "variable",
    "signatures": [
      "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<B>, E, R>;\n    <A, E, R, B>(ref: RefOption<A, E, R>, f: (a: A) => B): RefSubject.Computed<Option.Option<B>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 135,
          "column": 14
        },
        "end": {
          "line": 145,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 136,
          "column": 3
        },
        "end": {
          "line": 138,
          "column": 85
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 139,
          "column": 3
        },
        "end": {
          "line": 142,
          "column": 50
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefOption.map"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:8b0b990f6835d3f8f17f82c2",
    "name": "map",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<B>, E, R>;\n    <A, E, R, B>(ref: RefOption<A, E, R>, f: (a: A) => B): RefSubject.Computed<Option.Option<B>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefOption.ts",
            "start": {
              "line": 135,
              "column": 14
            },
            "end": {
              "line": 145,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A, B>(f: (a: A) => B): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<B>, E, R>;",
          "<A, E, R, B>(ref: RefOption<A, E, R>, f: (a: A) => B): RefSubject.Computed<Option.Option<B>, E, R>;"
        ],
        "typeParameters": [
          "A",
          "B",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefOption.ts",
            "start": {
              "line": 136,
              "column": 3
            },
            "end": {
              "line": 138,
              "column": 85
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefOption.ts",
            "start": {
              "line": 139,
              "column": 3
            },
            "end": {
              "line": 142,
              "column": 50
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const map: {\n    <A, B>(f: (a: A) => B): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<B>, E, R>;\n    <A, E, R, B>(ref: RefOption<A, E, R>, f: (a: A) => B): RefSubject.Computed<Option.Option<B>, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "B",
      "E",
      "R"
    ],
    "summary": "Map the value inside the Option of a RefOption.",
    "sections": {
      "Why": "Projects option state with map for both current reads and future pushes, avoiding a second\nmutable cache of the derived value.",
      "Ownership and lifetime": "The map view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 135,
          "column": 14
        },
        "end": {
          "line": 145,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 136,
          "column": 3
        },
        "end": {
          "line": 138,
          "column": 85
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 139,
          "column": 3
        },
        "end": {
          "line": 142,
          "column": 50
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
