{
  "id": "@typed/fx#RefResult.match",
  "canonicalId": "@typed/fx/RefResult#match",
  "symbol": {
    "id": "@typed/fx#RefResult.match",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefResult.match",
    "kind": "constant",
    "signatures": [
      "export declare const match: {\n    <A, ResultE, B>(options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): <Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<B, Err, R>;\n    <A, ResultE, Err, R, B>(ref: RefResult<A, ResultE, Err, R>, options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): RefSubject.Computed<B, Err, R>;\n};"
    ],
    "summary": "Match on the Result value.",
    "sections": {
      "Why": "Folds both Result variants into one Computed value, applying the same handlers to current reads\nand subsequent pushes.",
      "Ownership and lifetime": "The match 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/RefResult.ts",
      "line": 312
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefResult.match",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefResult",
    "qualifiedName": "RefResult.match",
    "declarationKey": "declaration:b769992f2058b33dea069e4b",
    "family": "variable",
    "signatures": [
      "export declare const match: {\n    <A, ResultE, B>(options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): <Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<B, Err, R>;\n    <A, ResultE, Err, R, B>(ref: RefResult<A, ResultE, Err, R>, options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): RefSubject.Computed<B, Err, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefResult.ts",
        "start": {
          "line": 312,
          "column": 14
        },
        "end": {
          "line": 335,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefResult.ts",
        "start": {
          "line": 313,
          "column": 3
        },
        "end": {
          "line": 316,
          "column": 86
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefResult.ts",
        "start": {
          "line": 317,
          "column": 3
        },
        "end": {
          "line": 323,
          "column": 37
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefResult#match"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefResult",
    "static": false,
    "importedFrom": "declaration:b769992f2058b33dea069e4b"
  },
  "declaration": {
    "declarationKey": "declaration:b769992f2058b33dea069e4b",
    "name": "match",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const match: {\n    <A, ResultE, B>(options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): <Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<B, Err, R>;\n    <A, ResultE, Err, R, B>(ref: RefResult<A, ResultE, Err, R>, options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): RefSubject.Computed<B, Err, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefResult.ts",
            "start": {
              "line": 312,
              "column": 14
            },
            "end": {
              "line": 335,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A, ResultE, B>(options: {\n    readonly onSuccess: (a: A) => B;\n    readonly onFailure: (e: ResultE) => B;\n}): <Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<B, Err, R>;",
          "<A, ResultE, Err, R, B>(ref: RefResult<A, ResultE, Err, R>, options: {\n    readonly onSuccess: (a: A) => B;\n    readonly onFailure: (e: ResultE) => B;\n}): RefSubject.Computed<B, Err, R>;"
        ],
        "typeParameters": [
          "A",
          "ResultE",
          "B",
          "Err",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefResult.ts",
            "start": {
              "line": 313,
              "column": 3
            },
            "end": {
              "line": 316,
              "column": 86
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefResult.ts",
            "start": {
              "line": 317,
              "column": 3
            },
            "end": {
              "line": 323,
              "column": 37
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const match: {\n    <A, ResultE, B>(options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): <Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<B, Err, R>;\n    <A, ResultE, Err, R, B>(ref: RefResult<A, ResultE, Err, R>, options: {\n        readonly onSuccess: (a: A) => B;\n        readonly onFailure: (e: ResultE) => B;\n    }): RefSubject.Computed<B, Err, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "ResultE",
      "B",
      "Err",
      "R"
    ],
    "summary": "Match on the Result value.",
    "sections": {
      "Why": "Folds both Result variants into one Computed value, applying the same handlers to current reads\nand subsequent pushes.",
      "Ownership and lifetime": "The match 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/RefResult.ts",
        "start": {
          "line": 312,
          "column": 14
        },
        "end": {
          "line": 335,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefResult.ts",
        "start": {
          "line": 313,
          "column": 3
        },
        "end": {
          "line": 316,
          "column": 86
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefResult.ts",
        "start": {
          "line": 317,
          "column": 3
        },
        "end": {
          "line": 323,
          "column": 37
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
