{
  "id": "@typed/fx#RefOption.contains",
  "canonicalId": "@typed/fx/RefOption#contains",
  "symbol": {
    "id": "@typed/fx#RefOption.contains",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefOption.contains",
    "kind": "constant",
    "signatures": [
      "export declare const contains: {\n    <A>(value: A): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;\n    <A, E, R>(ref: RefOption<A, E, R>, value: A): RefSubject.Computed<boolean, E, R>;\n};"
    ],
    "summary": "Check if the current state of a RefOption contains a value.",
    "sections": {
      "Why": "Makes contains a live projection of the option; consumers can sample it now or observe it\nwithout copying the source state.",
      "Ownership and lifetime": "The contains 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": 280
    },
    "since": "1.18.0",
    "category": "State predicates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefOption.contains",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefOption",
    "qualifiedName": "RefOption.contains",
    "declarationKey": "declaration:efd80840c9ee975669ffceb0",
    "family": "variable",
    "signatures": [
      "export declare const contains: {\n    <A>(value: A): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;\n    <A, E, R>(ref: RefOption<A, E, R>, value: A): RefSubject.Computed<boolean, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 280,
          "column": 14
        },
        "end": {
          "line": 285,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 281,
          "column": 3
        },
        "end": {
          "line": 281,
          "column": 88
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 282,
          "column": 3
        },
        "end": {
          "line": 282,
          "column": 84
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefOption#contains"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefOption",
    "static": false,
    "importedFrom": "declaration:efd80840c9ee975669ffceb0"
  },
  "declaration": {
    "declarationKey": "declaration:efd80840c9ee975669ffceb0",
    "name": "contains",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const contains: {\n    <A>(value: A): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;\n    <A, E, R>(ref: RefOption<A, E, R>, value: A): RefSubject.Computed<boolean, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefOption.ts",
            "start": {
              "line": 280,
              "column": 14
            },
            "end": {
              "line": 285,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A>(value: A): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;",
          "<A, E, R>(ref: RefOption<A, E, R>, value: A): RefSubject.Computed<boolean, E, R>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefOption.ts",
            "start": {
              "line": 281,
              "column": 3
            },
            "end": {
              "line": 281,
              "column": 88
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefOption.ts",
            "start": {
              "line": 282,
              "column": 3
            },
            "end": {
              "line": 282,
              "column": 84
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const contains: {\n    <A>(value: A): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;\n    <A, E, R>(ref: RefOption<A, E, R>, value: A): RefSubject.Computed<boolean, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Check if the current state of a RefOption contains a value.",
    "sections": {
      "Why": "Makes contains a live projection of the option; consumers can sample it now or observe it\nwithout copying the source state.",
      "Ownership and lifetime": "The contains 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": 280,
          "column": 14
        },
        "end": {
          "line": 285,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 281,
          "column": 3
        },
        "end": {
          "line": 281,
          "column": 88
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefOption.ts",
        "start": {
          "line": 282,
          "column": 3
        },
        "end": {
          "line": 282,
          "column": 84
        }
      }
    ],
    "since": "1.18.0",
    "category": "State predicates"
  }
}
