{
  "id": "@typed/fx/RefSubject#isRefSubject",
  "canonicalId": "@typed/fx/RefSubject#isRefSubject",
  "symbol": {
    "id": "@typed/fx/RefSubject#isRefSubject",
    "packageName": "@typed/fx",
    "moduleName": "RefSubject",
    "exportName": "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": 2476
    },
    "since": "1.0.0",
    "category": "Type guards"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefSubject#isRefSubject",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "RefSubject",
    "consumerSpecifier": "@typed/fx/RefSubject",
    "exportName": "isRefSubject",
    "qualifiedName": "isRefSubject",
    "declarationKey": "declaration:d1d1f25112242db1e9f84ac3",
    "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": 2476,
          "column": 1
        },
        "end": {
          "line": 2478,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefSubject.isRefSubject"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:d1d1f25112242db1e9f84ac3",
    "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": 2476,
              "column": 1
            },
            "end": {
              "line": 2478,
              "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": 2476,
          "column": 1
        },
        "end": {
          "line": 2478,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Type guards"
  }
}
