{
  "id": "@typed/ui/Form#StateSchema",
  "canonicalId": "@typed/ui/Form#StateSchema",
  "symbol": {
    "id": "@typed/ui/Form#StateSchema",
    "packageName": "@typed/ui",
    "moduleName": "Form",
    "exportName": "StateSchema",
    "kind": "function",
    "signatures": [
      "export declare function StateSchema<const Fields extends FormFields>(codec: Schema.Struct<Fields>): Schema.Struct<{\n    readonly values: Schema.Struct<Fields>;\n    readonly defaultValues: Schema.Struct<Fields>;\n    readonly errors: Schema.Struct<OptionalFields<Fields, Schema.String>>;\n    readonly meta: Schema.Struct<OptionalFields<Fields, Schema.Struct<{\n        readonly dirty: Schema.Boolean;\n        readonly touched: Schema.Boolean;\n    }>>>;\n    readonly submitting: Schema.Boolean;\n}>;"
    ],
    "summary": "Builds the serializable schema for a form's hydrated state.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import { StateSchema } from \"@typed/ui/Form\"\nimport { Schema } from \"effect\"\n\nconst codec = Schema.Struct({ email: Schema.String })\nconst stateCodec = StateSchema(codec)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Form.ts",
      "line": 263
    },
    "since": "1.0.0",
    "category": "Hydration schemas"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/Form#StateSchema",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "Form",
    "consumerSpecifier": "@typed/ui/Form",
    "exportName": "StateSchema",
    "qualifiedName": "StateSchema",
    "declarationKey": "declaration:586149f58fcaf113a2559134",
    "family": "function",
    "signatures": [
      "export declare function StateSchema<const Fields extends FormFields>(codec: Schema.Struct<Fields>): Schema.Struct<{\n    readonly values: Schema.Struct<Fields>;\n    readonly defaultValues: Schema.Struct<Fields>;\n    readonly errors: Schema.Struct<OptionalFields<Fields, Schema.String>>;\n    readonly meta: Schema.Struct<OptionalFields<Fields, Schema.Struct<{\n        readonly dirty: Schema.Boolean;\n        readonly touched: Schema.Boolean;\n    }>>>;\n    readonly submitting: Schema.Boolean;\n}>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Form.ts",
        "start": {
          "line": 263,
          "column": 1
        },
        "end": {
          "line": 271,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Form.StateSchema",
      "@typed/ui/index#Form.StateSchema"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:586149f58fcaf113a2559134",
    "name": "StateSchema",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function StateSchema<const Fields extends FormFields>(codec: Schema.Struct<Fields>): Schema.Struct<{\n    readonly values: Schema.Struct<Fields>;\n    readonly defaultValues: Schema.Struct<Fields>;\n    readonly errors: Schema.Struct<OptionalFields<Fields, Schema.String>>;\n    readonly meta: Schema.Struct<OptionalFields<Fields, Schema.Struct<{\n        readonly dirty: Schema.Boolean;\n        readonly touched: Schema.Boolean;\n    }>>>;\n    readonly submitting: Schema.Boolean;\n}>;"
        ],
        "typeParameters": [
          "const Fields extends FormFields"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Form.ts",
            "start": {
              "line": 263,
              "column": 1
            },
            "end": {
              "line": 271,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function StateSchema<const Fields extends FormFields>(codec: Schema.Struct<Fields>): Schema.Struct<{\n    readonly values: Schema.Struct<Fields>;\n    readonly defaultValues: Schema.Struct<Fields>;\n    readonly errors: Schema.Struct<OptionalFields<Fields, Schema.String>>;\n    readonly meta: Schema.Struct<OptionalFields<Fields, Schema.Struct<{\n        readonly dirty: Schema.Boolean;\n        readonly touched: Schema.Boolean;\n    }>>>;\n    readonly submitting: Schema.Boolean;\n}>;"
    ],
    "typeParameters": [
      "const Fields extends FormFields"
    ],
    "summary": "Builds the serializable schema for a form's hydrated state.",
    "sections": {},
    "examples": [
      {
        "language": "ts",
        "code": "import { StateSchema } from \"@typed/ui/Form\"\nimport { Schema } from \"effect\"\n\nconst codec = Schema.Struct({ email: Schema.String })\nconst stateCodec = StateSchema(codec)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Form.ts",
        "start": {
          "line": 263,
          "column": 1
        },
        "end": {
          "line": 271,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Hydration schemas"
  }
}
