{
  "id": "@typed/guard#fromSchemaEncode",
  "canonicalId": "@typed/guard#fromSchemaEncode",
  "symbol": {
    "id": "@typed/guard#fromSchemaEncode",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "fromSchemaEncode",
    "kind": "function",
    "signatures": [
      "export declare function fromSchemaEncode<S extends Schema.Top>(schema: S): Guard<S[\"Type\"], S[\"Encoded\"], Schema.SchemaError, S[\"EncodingServices\"]>;"
    ],
    "summary": "Creates a Guard that encodes a schema's Type to its Encoded representation.",
    "sections": {
      "Why": "Schema encoding is the reverse direction of decoding and keeps encoding services and `SchemaError` visible in the Guard type.",
      "Ownership and lifetime": "Construction acquires no resources; schema services and any scoped work follow each returned Effect invocation."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { fromSchemaEncode } from \"@typed/guard\"\nimport { Schema } from \"effect\"\nconst encoded = fromSchemaEncode(Schema.NumberFromString)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 947
    },
    "since": "1.0.0",
    "category": "Schema decoding and encoding"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#fromSchemaEncode",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "fromSchemaEncode",
    "qualifiedName": "fromSchemaEncode",
    "declarationKey": "declaration:8669900d90463af5a1b6768c",
    "family": "function",
    "signatures": [
      "export declare function fromSchemaEncode<S extends Schema.Top>(schema: S): Guard<S[\"Type\"], S[\"Encoded\"], Schema.SchemaError, S[\"EncodingServices\"]>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 947,
          "column": 1
        },
        "end": {
          "line": 952,
          "column": 2
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:8669900d90463af5a1b6768c",
    "name": "fromSchemaEncode",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function fromSchemaEncode<S extends Schema.Top>(schema: S): Guard<S[\"Type\"], S[\"Encoded\"], Schema.SchemaError, S[\"EncodingServices\"]>;"
        ],
        "typeParameters": [
          "S extends Schema.Top"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 947,
              "column": 1
            },
            "end": {
              "line": 952,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function fromSchemaEncode<S extends Schema.Top>(schema: S): Guard<S[\"Type\"], S[\"Encoded\"], Schema.SchemaError, S[\"EncodingServices\"]>;"
    ],
    "typeParameters": [
      "S extends Schema.Top"
    ],
    "summary": "Creates a Guard that encodes a schema's Type to its Encoded representation.",
    "sections": {
      "Why": "Schema encoding is the reverse direction of decoding and keeps encoding services and `SchemaError` visible in the Guard type.",
      "Ownership and lifetime": "Construction acquires no resources; schema services and any scoped work follow each returned Effect invocation."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { fromSchemaEncode } from \"@typed/guard\"\nimport { Schema } from \"effect\"\nconst encoded = fromSchemaEncode(Schema.NumberFromString)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 947,
          "column": 1
        },
        "end": {
          "line": 952,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Schema decoding and encoding"
  }
}
