{
  "id": "@typed/guard#bindTo",
  "canonicalId": "@typed/guard#bindTo",
  "symbol": {
    "id": "@typed/guard#bindTo",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "bindTo",
    "kind": "constant",
    "signatures": [
      "export declare const bindTo: {\n    <K extends PropertyKey>(key: K): <I, O, E, R>(guard: GuardInput<I, O, E, R>) => Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n    <I, O, E, R, K extends PropertyKey>(guard: GuardInput<I, O, E, R>, key: K): Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n};"
    ],
    "summary": "Wraps any matched output in a new object under `key`. This is the explicit\ntransition from an arbitrary output to the record-building workflow.",
    "sections": {
      "Why": "Explicit wrapping makes arbitrary values safe for record combinators without assuming their runtime shape.",
      "Ownership and lifetime": "This pure combinator acquires no resources and creates a fresh plain object for every match."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { bindTo, liftPredicate } from \"@typed/guard\"\nconst named = bindTo(liftPredicate(Boolean), \"value\")"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 1185
    },
    "since": "1.0.0",
    "category": "Record construction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#bindTo",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "bindTo",
    "qualifiedName": "bindTo",
    "declarationKey": "declaration:db81e61e3d85eac605dede92",
    "family": "variable",
    "signatures": [
      "export declare const bindTo: {\n    <K extends PropertyKey>(key: K): <I, O, E, R>(guard: GuardInput<I, O, E, R>) => Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n    <I, O, E, R, K extends PropertyKey>(guard: GuardInput<I, O, E, R>, key: K): Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1185,
          "column": 14
        },
        "end": {
          "line": 1199,
          "column": 2
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1186,
          "column": 3
        },
        "end": {
          "line": 1188,
          "column": 85
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1189,
          "column": 3
        },
        "end": {
          "line": 1192,
          "column": 38
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:db81e61e3d85eac605dede92",
    "name": "bindTo",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const bindTo: {\n    <K extends PropertyKey>(key: K): <I, O, E, R>(guard: GuardInput<I, O, E, R>) => Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n    <I, O, E, R, K extends PropertyKey>(guard: GuardInput<I, O, E, R>, key: K): Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 1185,
              "column": 14
            },
            "end": {
              "line": 1199,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K extends PropertyKey>(key: K): <I, O, E, R>(guard: GuardInput<I, O, E, R>) => Guard<I, {\n    [k in K]: O;\n}, E, R>;",
          "<I, O, E, R, K extends PropertyKey>(guard: GuardInput<I, O, E, R>, key: K): Guard<I, {\n    [k in K]: O;\n}, E, R>;"
        ],
        "typeParameters": [
          "K extends PropertyKey",
          "I",
          "O",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 1186,
              "column": 3
            },
            "end": {
              "line": 1188,
              "column": 85
            }
          },
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 1189,
              "column": 3
            },
            "end": {
              "line": 1192,
              "column": 38
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const bindTo: {\n    <K extends PropertyKey>(key: K): <I, O, E, R>(guard: GuardInput<I, O, E, R>) => Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n    <I, O, E, R, K extends PropertyKey>(guard: GuardInput<I, O, E, R>, key: K): Guard<I, {\n        [k in K]: O;\n    }, E, R>;\n};"
    ],
    "typeParameters": [
      "K extends PropertyKey",
      "I",
      "O",
      "E",
      "R"
    ],
    "summary": "Wraps any matched output in a new object under `key`. This is the explicit\ntransition from an arbitrary output to the record-building workflow.",
    "sections": {
      "Why": "Explicit wrapping makes arbitrary values safe for record combinators without assuming their runtime shape.",
      "Ownership and lifetime": "This pure combinator acquires no resources and creates a fresh plain object for every match."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { bindTo, liftPredicate } from \"@typed/guard\"\nconst named = bindTo(liftPredicate(Boolean), \"value\")"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1185,
          "column": 14
        },
        "end": {
          "line": 1199,
          "column": 2
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1186,
          "column": 3
        },
        "end": {
          "line": 1188,
          "column": 85
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1189,
          "column": 3
        },
        "end": {
          "line": 1192,
          "column": 38
        }
      }
    ],
    "since": "1.0.0",
    "category": "Record construction"
  }
}
