{
  "id": "@typed/guard#AsGuard",
  "canonicalId": "@typed/guard#AsGuard",
  "symbol": {
    "id": "@typed/guard#AsGuard",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "AsGuard",
    "kind": "interface",
    "signatures": [
      "export interface AsGuard<in I, out O, out E = never, out R = never> {\n    readonly asGuard: () => Guard<I, O, E, R>;\n}"
    ],
    "summary": "An object that supplies a Guard through an own callable `asGuard` property.\nUse an instance field rather than a prototype method.",
    "sections": {
      "Why": "An explicit adapter protocol lets domain objects participate in Guard composition without inheritance or wrapper allocation.",
      "Ownership and lifetime": "The adapter acquires no resources; the returned Guard owns no lifetime beyond each returned Effect.",
      "Property: asGuard": "Returns the Guard represented by this adapter.",
      "Property: asGuard: Why": "Requiring an own callable property avoids ambiguous prototype behavior when adapters cross object boundaries.",
      "Property: asGuard: Ownership and lifetime": "Calling this property acquires no resources; the returned Guard follows its own Effect lifetime."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { AsGuard, Guard } from \"@typed/guard\"\nimport { Effect } from \"effect\"\nconst adapter: AsGuard<string, string> = { asGuard: () => ((input) => Effect.succeedSome(input)) as Guard<string, string> }"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 159
    },
    "since": "1.0.0",
    "category": "Guard contracts"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#AsGuard",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "AsGuard",
    "qualifiedName": "AsGuard",
    "declarationKey": "declaration:b7e97b75d497ebba7c21897e",
    "family": "interface",
    "signatures": [
      "export interface AsGuard<in I, out O, out E = never, out R = never> {\n    readonly asGuard: () => Guard<I, O, E, R>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 159,
          "column": 1
        },
        "end": {
          "line": 171,
          "column": 2
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 170,
          "column": 3
        },
        "end": {
          "line": 170,
          "column": 45
        }
      }
    ],
    "aliases": [
      "@typed/router#AsGuard",
      "@typed/router/Matcher#AsGuard"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:b7e97b75d497ebba7c21897e",
    "name": "AsGuard",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "export interface AsGuard<in I, out O, out E = never, out R = never> {\n    readonly asGuard: () => Guard<I, O, E, R>;\n}"
        ],
        "typeParameters": [
          "in I",
          "out O",
          "out E = never",
          "out R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 159,
              "column": 1
            },
            "end": {
              "line": 171,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly asGuard: () => Guard<I, O, E, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 170,
              "column": 3
            },
            "end": {
              "line": 170,
              "column": 45
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export interface AsGuard<in I, out O, out E = never, out R = never> {\n    readonly asGuard: () => Guard<I, O, E, R>;\n}"
    ],
    "typeParameters": [
      "in I",
      "out O",
      "out E = never",
      "out R = never"
    ],
    "summary": "An object that supplies a Guard through an own callable `asGuard` property.\nUse an instance field rather than a prototype method.",
    "sections": {
      "Why": "An explicit adapter protocol lets domain objects participate in Guard composition without inheritance or wrapper allocation.",
      "Ownership and lifetime": "The adapter acquires no resources; the returned Guard owns no lifetime beyond each returned Effect.",
      "Property: asGuard": "Returns the Guard represented by this adapter.",
      "Property: asGuard: Why": "Requiring an own callable property avoids ambiguous prototype behavior when adapters cross object boundaries.",
      "Property: asGuard: Ownership and lifetime": "Calling this property acquires no resources; the returned Guard follows its own Effect lifetime."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { AsGuard, Guard } from \"@typed/guard\"\nimport { Effect } from \"effect\"\nconst adapter: AsGuard<string, string> = { asGuard: () => ((input) => Effect.succeedSome(input)) as Guard<string, string> }"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 159,
          "column": 1
        },
        "end": {
          "line": 171,
          "column": 2
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 170,
          "column": 3
        },
        "end": {
          "line": 170,
          "column": 45
        }
      }
    ],
    "since": "1.0.0",
    "category": "Guard contracts"
  }
}
