{
  "id": "@typed/ui/Tree#makeState",
  "canonicalId": "@typed/ui/Tree#makeState",
  "symbol": {
    "id": "@typed/ui/Tree#makeState",
    "packageName": "@typed/ui",
    "moduleName": "Tree",
    "exportName": "makeState",
    "kind": "function",
    "signatures": [
      "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string | null;\n    readonly expandedIds: readonly string[];\n    readonly loop: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "summary": "Creates hydrated Tree state. activeId defaults null and expandedIds defaults empty.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import * as Effect from \"effect/Effect\";\nimport * as Tree from \"@typed/ui/Tree\";\n\nconst program = Effect.scoped(\n  Effect.gen(function* () {\n    const state = yield* Tree.makeState({});\n    const collection = yield* Tree.makeCollection();\n    return { state: yield* state, collection: yield* collection };\n  }),\n);"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Tree.ts",
      "line": 133
    },
    "since": "1.0.0",
    "category": "Hierarchy state"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/Tree#makeState",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Tree",
    "consumerSpecifier": "@typed/ui/Tree",
    "exportName": "makeState",
    "qualifiedName": "makeState",
    "declarationKey": "declaration:3cfb23db10bcaf5215e22f67",
    "family": "function",
    "signatures": [
      "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string | null;\n    readonly expandedIds: readonly string[];\n    readonly loop: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Tree.ts",
        "start": {
          "line": 133,
          "column": 1
        },
        "end": {
          "line": 139,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Tree.makeState",
      "@typed/ui/index#Tree.makeState"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:3cfb23db10bcaf5215e22f67",
    "name": "makeState",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string | null;\n    readonly expandedIds: readonly string[];\n    readonly loop: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Tree.ts",
            "start": {
              "line": 133,
              "column": 1
            },
            "end": {
              "line": 139,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function makeState(initial?: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{\n    readonly activeId: string | null;\n    readonly expandedIds: readonly string[];\n    readonly loop: boolean;\n}, Schema.SchemaError, never, never>, never, Scope.Scope>;"
    ],
    "typeParameters": [],
    "summary": "Creates hydrated Tree state. activeId defaults null and expandedIds defaults empty.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import * as Effect from \"effect/Effect\";\nimport * as Tree from \"@typed/ui/Tree\";\n\nconst program = Effect.scoped(\n  Effect.gen(function* () {\n    const state = yield* Tree.makeState({});\n    const collection = yield* Tree.makeCollection();\n    return { state: yield* state, collection: yield* collection };\n  }),\n);"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Tree.ts",
        "start": {
          "line": 133,
          "column": 1
        },
        "end": {
          "line": 139,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Hierarchy state"
  }
}
