{
  "id": "@typed/fx#RefSubject.isRefSubject",
  "canonicalId": "@typed/fx/RefSubject#isRefSubject",
  "symbol": {
    "id": "@typed/fx#RefSubject.isRefSubject",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefSubject.isRefSubject",
    "kind": "function",
    "signatures": [
      "export declare function isRefSubject(value: any): value is RefSubject<any, any, any>;"
    ],
    "summary": "Checks if a value is a `RefSubject`.",
    "sections": {
      "Why": "Checks if a value is a `RefSubject`.",
      "Ownership and lifetime": "The derived ref owns no independent state or subscription. It follows the source lifetime and\nroutes writes through the source's synchronized update boundary."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as RefSubject from \"@typed/fx/RefSubject\"\n\nconst program = Effect.gen(function* () {\n  const ref = yield* RefSubject.make(42)\n  const isRef = RefSubject.isRefSubject(ref)\n  console.log(isRef) // true\n\n  const notRef = { value: 42 }\n  const isNotRef = RefSubject.isRefSubject(notRef)\n  console.log(isNotRef) // false\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefSubject.ts",
      "line": 2481
    },
    "since": "1.0.0",
    "category": "Type guards"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefSubject.isRefSubject",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefSubject",
    "qualifiedName": "RefSubject.isRefSubject",
    "declarationKey": "declaration:96064d3b45e88a769e2f3245",
    "family": "function",
    "signatures": [
      "export declare function isRefSubject(value: any): value is RefSubject<any, any, any>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2481,
          "column": 1
        },
        "end": {
          "line": 2483,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefSubject#isRefSubject"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefSubject",
    "static": false,
    "importedFrom": "declaration:96064d3b45e88a769e2f3245"
  },
  "declaration": {
    "declarationKey": "declaration:96064d3b45e88a769e2f3245",
    "name": "isRefSubject",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function isRefSubject(value: any): value is RefSubject<any, any, any>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 2481,
              "column": 1
            },
            "end": {
              "line": 2483,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function isRefSubject(value: any): value is RefSubject<any, any, any>;"
    ],
    "typeParameters": [],
    "summary": "Checks if a value is a `RefSubject`.",
    "sections": {
      "Why": "Checks if a value is a `RefSubject`.",
      "Ownership and lifetime": "The derived ref owns no independent state or subscription. It follows the source lifetime and\nroutes writes through the source's synchronized update boundary."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as RefSubject from \"@typed/fx/RefSubject\"\n\nconst program = Effect.gen(function* () {\n  const ref = yield* RefSubject.make(42)\n  const isRef = RefSubject.isRefSubject(ref)\n  console.log(isRef) // true\n\n  const notRef = { value: 42 }\n  const isNotRef = RefSubject.isRefSubject(notRef)\n  console.log(isNotRef) // false\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2481,
          "column": 1
        },
        "end": {
          "line": 2483,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Type guards"
  }
}
