{
  "id": "@typed/guard#let",
  "canonicalId": "@typed/guard#let",
  "symbol": {
    "id": "@typed/guard#let",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "let",
    "kind": "constant",
    "signatures": [
      "export { let_ as let };",
      "declare const let_: {\n    <K extends PropertyKey, B>(key: K, value: B): <G extends GuardInput<any, any, any, any>>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>> & (K extends NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never> ? never : unknown)) => Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n    <G extends GuardInput<any, any, any, any>, K extends PropertyKey, B>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>>, key: Exclude<K, NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never>>, value: B): Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n};"
    ],
    "summary": "Adds a fixed property to every matched record output.",
    "sections": {
      "Why": "Record construction does not mutate the input and rejects existing enumerable keys; it returns an unfrozen plain object containing own enumerable string and symbol properties while dropping prototypes and non-enumerables.",
      "Ownership and lifetime": "This pure combinator acquires no resources and creates a fresh plain object for every match."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { bindTo, let as letGuard, liftPredicate } from \"@typed/guard\"\nconst named = letGuard(bindTo(liftPredicate(Boolean), \"value\"), \"kind\", \"input\")"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 1051
    },
    "since": "1.0.0",
    "category": "Record construction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#let",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "let",
    "qualifiedName": "let",
    "declarationKey": "declaration:c23eb48b1d261cdf6402be63",
    "family": "variable",
    "signatures": [
      "export { let_ as let };",
      "declare const let_: {\n    <K extends PropertyKey, B>(key: K, value: B): <G extends GuardInput<any, any, any, any>>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>> & (K extends NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never> ? never : unknown)) => Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n    <G extends GuardInput<any, any, any, any>, K extends PropertyKey, B>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>>, key: Exclude<K, NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never>>, value: B): Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1051,
          "column": 7
        },
        "end": {
          "line": 1085,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1052,
          "column": 3
        },
        "end": {
          "line": 1063,
          "column": 100
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1065,
          "column": 3
        },
        "end": {
          "line": 1072,
          "column": 98
        }
      }
    ],
    "aliases": [],
    "isAlias": true,
    "static": false,
    "importedFrom": "declaration:c23eb48b1d261cdf6402be63"
  },
  "declaration": {
    "declarationKey": "declaration:c23eb48b1d261cdf6402be63",
    "name": "let_",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "declare const let_: {\n    <K extends PropertyKey, B>(key: K, value: B): <G extends GuardInput<any, any, any, any>>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>> & (K extends NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never> ? never : unknown)) => Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n    <G extends GuardInput<any, any, any, any>, K extends PropertyKey, B>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>>, key: Exclude<K, NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never>>, value: B): Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 1051,
              "column": 7
            },
            "end": {
              "line": 1085,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K extends PropertyKey, B>(key: K, value: B): <G extends GuardInput<any, any, any, any>>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>> & (K extends NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never> ? never : unknown)) => Guard<Guard.Input<G>, Guard.Output<G> & {\n    [k in K]: B;\n}, Guard.Error<G>, Guard.Services<G>>;",
          "<G extends GuardInput<any, any, any, any>, K extends PropertyKey, B>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>>, key: Exclude<K, NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never>>, value: B): Guard<Guard.Input<G>, Guard.Output<G> & {\n    [k in K]: B;\n}, Guard.Error<G>, Guard.Services<G>>;"
        ],
        "typeParameters": [
          "K extends PropertyKey",
          "B",
          "G extends GuardInput<any, any, any, any>"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 1052,
              "column": 3
            },
            "end": {
              "line": 1063,
              "column": 100
            }
          },
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 1065,
              "column": 3
            },
            "end": {
              "line": 1072,
              "column": 98
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "declare const let_: {\n    <K extends PropertyKey, B>(key: K, value: B): <G extends GuardInput<any, any, any, any>>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>> & (K extends NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never> ? never : unknown)) => Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n    <G extends GuardInput<any, any, any, any>, K extends PropertyKey, B>(guard: G & RecordOutputConstraint<NoInfer<Guard.Output<G>>>, key: Exclude<K, NoInfer<Guard.Output<G> extends infer O ? (O extends unknown ? keyof O : never) : never>>, value: B): Guard<Guard.Input<G>, Guard.Output<G> & {\n        [k in K]: B;\n    }, Guard.Error<G>, Guard.Services<G>>;\n};"
    ],
    "typeParameters": [
      "K extends PropertyKey",
      "B",
      "G extends GuardInput<any, any, any, any>"
    ],
    "summary": "Adds a fixed property to every matched record output.",
    "sections": {
      "Why": "Record construction does not mutate the input and rejects existing enumerable keys; it returns an unfrozen plain object containing own enumerable string and symbol properties while dropping prototypes and non-enumerables.",
      "Ownership and lifetime": "This pure combinator acquires no resources and creates a fresh plain object for every match."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { bindTo, let as letGuard, liftPredicate } from \"@typed/guard\"\nconst named = letGuard(bindTo(liftPredicate(Boolean), \"value\"), \"kind\", \"input\")"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1051,
          "column": 7
        },
        "end": {
          "line": 1085,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1052,
          "column": 3
        },
        "end": {
          "line": 1063,
          "column": 100
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 1065,
          "column": 3
        },
        "end": {
          "line": 1072,
          "column": 98
        }
      }
    ],
    "since": "1.0.0",
    "category": "Record construction"
  }
}
