{
  "id": "@typed/ui#Popover.makeState",
  "canonicalId": "@typed/ui/Popover#makeState",
  "symbol": {
    "id": "@typed/ui#Popover.makeState",
    "packageName": "@typed/ui",
    "moduleName": ".",
    "exportName": "Popover.makeState",
    "kind": "function",
    "signatures": [
      "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly open: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "summary": "Creates hydrated popover state.",
    "sections": {
      "Why": "Applications can own and test visibility independently of a component.",
      "Ownership and lifetime": "The calling Effect Scope owns the returned RefSubject."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Popover from \"@typed/ui/Popover\"\n\nconst program = Effect.gen(function* () {\n  return yield* Popover.makeState()\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Popover.ts",
      "line": 90
    },
    "since": "1.0.0",
    "category": "Open state"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui#Popover.makeState",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/ui",
    "exportName": "Popover",
    "qualifiedName": "Popover.makeState",
    "declarationKey": "declaration:73a053b3856c815a5dc1c3d8",
    "family": "function",
    "signatures": [
      "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly open: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Popover.ts",
        "start": {
          "line": 90,
          "column": 1
        },
        "end": {
          "line": 92,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui/Popover#makeState",
      "@typed/ui/index#Popover.makeState"
    ],
    "isAlias": true,
    "parentId": "@typed/ui#Popover",
    "static": false,
    "importedFrom": "declaration:73a053b3856c815a5dc1c3d8"
  },
  "declaration": {
    "declarationKey": "declaration:73a053b3856c815a5dc1c3d8",
    "name": "makeState",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly open: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Popover.ts",
            "start": {
              "line": 90,
              "column": 1
            },
            "end": {
              "line": 92,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly open: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "typeParameters": [],
    "summary": "Creates hydrated popover state.",
    "sections": {
      "Why": "Applications can own and test visibility independently of a component.",
      "Ownership and lifetime": "The calling Effect Scope owns the returned RefSubject."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Popover from \"@typed/ui/Popover\"\n\nconst program = Effect.gen(function* () {\n  return yield* Popover.makeState()\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Popover.ts",
        "start": {
          "line": 90,
          "column": 1
        },
        "end": {
          "line": 92,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Open state"
  }
}
