{
  "id": "@typed/guard#pipe",
  "canonicalId": "@typed/guard#pipe",
  "symbol": {
    "id": "@typed/guard#pipe",
    "packageName": "@typed/guard",
    "moduleName": ".",
    "exportName": "pipe",
    "kind": "constant",
    "signatures": [
      "export declare const pipe: {\n    <O, B, E2, R2>(output: GuardInput<O, B, E2, R2>): <I, R, E>(input: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(input: GuardInput<I, O, E, R>, output: GuardInput<O, B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
    ],
    "summary": "Runs `output` only when `input` matches. `None` short-circuits successfully,\nwhile failures and service requirements are preserved from both Guards.",
    "sections": {
      "Why": "Sequential Guard composition must preserve ordinary non-match while unioning the typed error and service channels of both stages.",
      "Ownership and lifetime": "Construction acquires no resources; each invocation runs the first Effect and only starts the second after `Some`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { liftPredicate, pipe } from \"@typed/guard\"\nconst nonEmpty = pipe(liftPredicate((u: unknown): u is string => typeof u === \"string\"), liftPredicate((s) => s.length > 0))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/guard/src/index.ts",
      "line": 275
    },
    "since": "1.0.0",
    "category": "Sequential composition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/guard#pipe",
    "packageName": "@typed/guard",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/guard",
    "exportName": "pipe",
    "qualifiedName": "pipe",
    "declarationKey": "declaration:c3627ccac4ec193c07a651c1",
    "family": "variable",
    "signatures": [
      "export declare const pipe: {\n    <O, B, E2, R2>(output: GuardInput<O, B, E2, R2>): <I, R, E>(input: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(input: GuardInput<I, O, E, R>, output: GuardInput<O, B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 275,
          "column": 14
        },
        "end": {
          "line": 302,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 276,
          "column": 3
        },
        "end": {
          "line": 278,
          "column": 78
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 279,
          "column": 3
        },
        "end": {
          "line": 282,
          "column": 34
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:c3627ccac4ec193c07a651c1",
    "name": "pipe",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const pipe: {\n    <O, B, E2, R2>(output: GuardInput<O, B, E2, R2>): <I, R, E>(input: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(input: GuardInput<I, O, E, R>, output: GuardInput<O, B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 275,
              "column": 14
            },
            "end": {
              "line": 302,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<O, B, E2, R2>(output: GuardInput<O, B, E2, R2>): <I, R, E>(input: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;",
          "<I, O, E, R, B, E2, R2>(input: GuardInput<I, O, E, R>, output: GuardInput<O, B, E2, R2>): Guard<I, B, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "O",
          "B",
          "E2",
          "R2",
          "I",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 276,
              "column": 3
            },
            "end": {
              "line": 278,
              "column": 78
            }
          },
          {
            "file": "packages/guard/src/index.ts",
            "start": {
              "line": 279,
              "column": 3
            },
            "end": {
              "line": 282,
              "column": 34
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const pipe: {\n    <O, B, E2, R2>(output: GuardInput<O, B, E2, R2>): <I, R, E>(input: GuardInput<I, O, E, R>) => Guard<I, B, E | E2, R | R2>;\n    <I, O, E, R, B, E2, R2>(input: GuardInput<I, O, E, R>, output: GuardInput<O, B, E2, R2>): Guard<I, B, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "O",
      "B",
      "E2",
      "R2",
      "I",
      "E",
      "R"
    ],
    "summary": "Runs `output` only when `input` matches. `None` short-circuits successfully,\nwhile failures and service requirements are preserved from both Guards.",
    "sections": {
      "Why": "Sequential Guard composition must preserve ordinary non-match while unioning the typed error and service channels of both stages.",
      "Ownership and lifetime": "Construction acquires no resources; each invocation runs the first Effect and only starts the second after `Some`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { liftPredicate, pipe } from \"@typed/guard\"\nconst nonEmpty = pipe(liftPredicate((u: unknown): u is string => typeof u === \"string\"), liftPredicate((s) => s.length > 0))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 275,
          "column": 14
        },
        "end": {
          "line": 302,
          "column": 3
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 276,
          "column": 3
        },
        "end": {
          "line": 278,
          "column": 78
        }
      },
      {
        "file": "packages/guard/src/index.ts",
        "start": {
          "line": 279,
          "column": 3
        },
        "end": {
          "line": 282,
          "column": 34
        }
      }
    ],
    "since": "1.0.0",
    "category": "Sequential composition"
  }
}
