{
  "id": "@typed/guard/getGuard#getGuard",
  "canonicalId": "@typed/guard/getGuard#getGuard",
  "symbol": {
    "id": "@typed/guard/getGuard#getGuard",
    "packageName": "@typed/guard",
    "moduleName": "getGuard",
    "exportName": "getGuard",
    "kind": "constant",
    "signatures": [
      "export declare const getGuard: <I, O, E = never, R = never>(guard: GuardInput<I, O, E, R>) => Guard<I, O, E, R>;"
    ],
    "summary": "Returns a callable Guard unchanged or obtains one from an own callable\n`asGuard` property. Invalid adapter objects throw `TypeError` immediately.",
    "sections": {
      "Why": "Central normalization makes invalid adapter shapes fail at construction instead of later during Effect execution.",
      "Ownership and lifetime": "Normalization acquires no resources and returns the existing Guard function or the adapter's result."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { getGuard } from \"@typed/guard/getGuard\"\nimport { liftPredicate } from \"@typed/guard\"\nconst guard = getGuard(liftPredicate((value: unknown): value is string => typeof value === \"string\"))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/getGuard.ts",
      "line": 24
    },
    "since": "1.0.0",
    "category": "Library adapters"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard/getGuard#getGuard",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "getGuard",
    "consumerSpecifier": "@typed/guard/getGuard",
    "exportName": "getGuard",
    "qualifiedName": "getGuard",
    "declarationKey": "declaration:998b504be999a5ecc0873a13",
    "family": "variable",
    "signatures": [
      "export declare const getGuard: <I, O, E = never, R = never>(guard: GuardInput<I, O, E, R>) => Guard<I, O, E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/getGuard.ts",
        "start": {
          "line": 24,
          "column": 14
        },
        "end": {
          "line": 48,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/guard#getGuard"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:998b504be999a5ecc0873a13",
    "name": "getGuard",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const getGuard: <I, O, E = never, R = never>(guard: GuardInput<I, O, E, R>) => Guard<I, O, E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/getGuard.ts",
            "start": {
              "line": 24,
              "column": 14
            },
            "end": {
              "line": 48,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const getGuard: <I, O, E = never, R = never>(guard: GuardInput<I, O, E, R>) => Guard<I, O, E, R>;"
    ],
    "typeParameters": [],
    "summary": "Returns a callable Guard unchanged or obtains one from an own callable\n`asGuard` property. Invalid adapter objects throw `TypeError` immediately.",
    "sections": {
      "Why": "Central normalization makes invalid adapter shapes fail at construction instead of later during Effect execution.",
      "Ownership and lifetime": "Normalization acquires no resources and returns the existing Guard function or the adapter's result."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { getGuard } from \"@typed/guard/getGuard\"\nimport { liftPredicate } from \"@typed/guard\"\nconst guard = getGuard(liftPredicate((value: unknown): value is string => typeof value === \"string\"))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/getGuard.ts",
        "start": {
          "line": 24,
          "column": 14
        },
        "end": {
          "line": 48,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Library adapters"
  }
}
