{
  "id": "@typed/guard#fromSchemaDecode",
  "canonicalId": "@typed/guard#fromSchemaDecode",
  "symbol": {
    "id": "@typed/guard#fromSchemaDecode",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "fromSchemaDecode",
    "kind": "function",
    "signatures": [
      "export declare function fromSchemaDecode<S extends Schema.Top>(schema: S): Guard<S[\"Encoded\"], S[\"Type\"], Schema.SchemaError, S[\"DecodingServices\"]>;"
    ],
    "summary": "Creates a Guard that decodes a schema's Encoded input to its Type.",
    "sections": {
      "Why": "Schema decoding reports all issues, ignores excess properties, retains `SchemaError` in the typed channel, and carries decoding services in `R`.",
      "Ownership and lifetime": "Construction acquires no resources; schema services and any scoped work follow each returned Effect invocation."
    },
    "examples": [
      {
        "language": "text",
        "code": "```ts\nimport { fromSchemaDecode } from \"@typed/guard\"\nimport { Schema } from \"effect\"\nconst number = fromSchemaDecode(Schema.NumberFromString)\n```\nSee [Effect Schema transformations](https://effect.website/docs/schema/transformations/)."
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 924
    },
    "since": "1.0.0",
    "category": "Schema decoding and encoding"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#fromSchemaDecode",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "fromSchemaDecode",
    "qualifiedName": "fromSchemaDecode",
    "declarationKey": "declaration:ac53220769d620462a170255",
    "family": "function",
    "signatures": [
      "export declare function fromSchemaDecode<S extends Schema.Top>(schema: S): Guard<S[\"Encoded\"], S[\"Type\"], Schema.SchemaError, S[\"DecodingServices\"]>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 924,
          "column": 1
        },
        "end": {
          "line": 929,
          "column": 2
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:ac53220769d620462a170255",
    "name": "fromSchemaDecode",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function fromSchemaDecode<S extends Schema.Top>(schema: S): Guard<S[\"Encoded\"], S[\"Type\"], Schema.SchemaError, S[\"DecodingServices\"]>;"
        ],
        "typeParameters": [
          "S extends Schema.Top"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 924,
              "column": 1
            },
            "end": {
              "line": 929,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function fromSchemaDecode<S extends Schema.Top>(schema: S): Guard<S[\"Encoded\"], S[\"Type\"], Schema.SchemaError, S[\"DecodingServices\"]>;"
    ],
    "typeParameters": [
      "S extends Schema.Top"
    ],
    "summary": "Creates a Guard that decodes a schema's Encoded input to its Type.",
    "sections": {
      "Why": "Schema decoding reports all issues, ignores excess properties, retains `SchemaError` in the typed channel, and carries decoding services in `R`.",
      "Ownership and lifetime": "Construction acquires no resources; schema services and any scoped work follow each returned Effect invocation."
    },
    "examples": [
      {
        "language": "text",
        "code": "```ts\nimport { fromSchemaDecode } from \"@typed/guard\"\nimport { Schema } from \"effect\"\nconst number = fromSchemaDecode(Schema.NumberFromString)\n```\nSee [Effect Schema transformations](https://effect.website/docs/schema/transformations/)."
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 924,
          "column": 1
        },
        "end": {
          "line": 929,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Schema decoding and encoding"
  }
}
