{
  "id": "@typed/fx#RefSubject.proxy",
  "canonicalId": "@typed/fx/RefSubject#proxy",
  "symbol": {
    "id": "@typed/fx#RefSubject.proxy",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefSubject.proxy",
    "kind": "constant",
    "signatures": [
      "export declare const proxy: {\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Computed<A, E, R>): {\n        readonly [K in keyof A]: Computed<A[K], E, R>;\n    };\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Filtered<A, E, R>): {\n        readonly [K in keyof A]: Filtered<A[K], E, R>;\n    };\n};"
    ],
    "summary": "Extract all values from an object using a Proxy.\nAllows accessing nested properties of a `Computed` or `Filtered` object/array as individual computed values.",
    "sections": {
      "Why": "Lazily creates one property projection per accessed key and memoizes that projection on the\nJavaScript Proxy. A Computed or RefSubject source produces Computed properties; only a Filtered\nsource produces Filtered properties and preserves conditional absence.",
      "Ownership and lifetime": "The Proxy caches derived view objects, not property values. Computed property reads expose only\nthe source's `E`; Filtered property reads can additionally fail with `NoSuchElementError` while\ntheir source is absent. Each observed property follows the source and uses the observing Scope."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as RefSubject from \"@typed/fx/RefSubject\"\n\nconst program = Effect.gen(function* () {\n  const user = yield* RefSubject.make({ name: \"Alice\", age: 30 })\n\n  // Create a proxy to access nested properties\n  const proxied = RefSubject.proxy(user)\n\n  // Access individual properties as Computed values\n  const name = yield* proxied.name\n  console.log(name) // \"Alice\"\n\n  const age = yield* proxied.age\n  console.log(age) // 30\n\n  // Update the source\n  yield* RefSubject.set(user, { name: \"Bob\", age: 25 })\n\n  // Proxied values automatically update\n  const newName = yield* proxied.name\n  console.log(newName) // \"Bob\"\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefSubject.ts",
      "line": 2836
    },
    "since": "2.0.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefSubject.proxy",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefSubject",
    "qualifiedName": "RefSubject.proxy",
    "declarationKey": "declaration:6f2f8eaf3647b149d212fdfd",
    "family": "variable",
    "signatures": [
      "export declare const proxy: {\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Computed<A, E, R>): {\n        readonly [K in keyof A]: Computed<A[K], E, R>;\n    };\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Filtered<A, E, R>): {\n        readonly [K in keyof A]: Filtered<A[K], E, R>;\n    };\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2836,
          "column": 14
        },
        "end": {
          "line": 2854,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2837,
          "column": 3
        },
        "end": {
          "line": 2839,
          "column": 56
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2841,
          "column": 3
        },
        "end": {
          "line": 2843,
          "column": 56
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefSubject#proxy"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefSubject",
    "static": false,
    "importedFrom": "declaration:6f2f8eaf3647b149d212fdfd"
  },
  "declaration": {
    "declarationKey": "declaration:6f2f8eaf3647b149d212fdfd",
    "name": "proxy",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const proxy: {\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Computed<A, E, R>): {\n        readonly [K in keyof A]: Computed<A[K], E, R>;\n    };\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Filtered<A, E, R>): {\n        readonly [K in keyof A]: Filtered<A[K], E, R>;\n    };\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 2836,
              "column": 14
            },
            "end": {
              "line": 2854,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Computed<A, E, R>): {\n    readonly [K in keyof A]: Computed<A[K], E, R>;\n};",
          "<A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Filtered<A, E, R>): {\n    readonly [K in keyof A]: Filtered<A[K], E, R>;\n};"
        ],
        "typeParameters": [
          "A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 2837,
              "column": 3
            },
            "end": {
              "line": 2839,
              "column": 56
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 2841,
              "column": 3
            },
            "end": {
              "line": 2843,
              "column": 56
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const proxy: {\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Computed<A, E, R>): {\n        readonly [K in keyof A]: Computed<A[K], E, R>;\n    };\n    <A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>, E, R>(source: Filtered<A, E, R>): {\n        readonly [K in keyof A]: Filtered<A[K], E, R>;\n    };\n};"
    ],
    "typeParameters": [
      "A extends ReadonlyArray<any> | Readonly<Record<PropertyKey, any>>",
      "E",
      "R"
    ],
    "summary": "Extract all values from an object using a Proxy.\nAllows accessing nested properties of a `Computed` or `Filtered` object/array as individual computed values.",
    "sections": {
      "Why": "Lazily creates one property projection per accessed key and memoizes that projection on the\nJavaScript Proxy. A Computed or RefSubject source produces Computed properties; only a Filtered\nsource produces Filtered properties and preserves conditional absence.",
      "Ownership and lifetime": "The Proxy caches derived view objects, not property values. Computed property reads expose only\nthe source's `E`; Filtered property reads can additionally fail with `NoSuchElementError` while\ntheir source is absent. Each observed property follows the source and uses the observing Scope."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as RefSubject from \"@typed/fx/RefSubject\"\n\nconst program = Effect.gen(function* () {\n  const user = yield* RefSubject.make({ name: \"Alice\", age: 30 })\n\n  // Create a proxy to access nested properties\n  const proxied = RefSubject.proxy(user)\n\n  // Access individual properties as Computed values\n  const name = yield* proxied.name\n  console.log(name) // \"Alice\"\n\n  const age = yield* proxied.age\n  console.log(age) // 30\n\n  // Update the source\n  yield* RefSubject.set(user, { name: \"Bob\", age: 25 })\n\n  // Proxied values automatically update\n  const newName = yield* proxied.name\n  console.log(newName) // \"Bob\"\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2836,
          "column": 14
        },
        "end": {
          "line": 2854,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2837,
          "column": 3
        },
        "end": {
          "line": 2839,
          "column": 56
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 2841,
          "column": 3
        },
        "end": {
          "line": 2843,
          "column": 56
        }
      }
    ],
    "since": "2.0.0",
    "category": "Derived queries"
  }
}
