{
  "id": "@typed/fx#Fx.zipLatest",
  "canonicalId": "@typed/fx/Fx#zipLatest",
  "symbol": {
    "id": "@typed/fx#Fx.zipLatest",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.zipLatest",
    "kind": "constant",
    "signatures": [
      "export declare const zipLatest: {\n    <AR, ER, RR>(that: Fx<AR, ER, RR>): <AL, EL, RL>(self: Fx<AL, EL, RL>) => Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n    <AL, EL, RL, AR, ER, RR>(self: Fx<AL, EL, RL>, that: Fx<AR, ER, RR>): Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n};"
    ],
    "summary": "Zips two Fx streams by latest values: waits for both to emit at least once,\nthen emits `[left, right]` whenever **either** stream emits (using the latest\nvalue from the other). No strict pairing; output count is the sum of\nemissions from both after the first pair.\n\n**Completion:** Completes when **both** streams have completed.\n**Errors:** The first failure from either stream fails the result.",
    "sections": {
      "Why": "`zipLatest` combines independent sources as state: after both initialize, either update emits one\npair containing both latest values. It does not enforce one-to-one pairing.",
      "Ownership and lifetime": "It delegates to `tuple`: both sources run concurrently and retain one latest value each until\nboth complete or the consumer is interrupted."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst latest = Fx.zipLatest(Fx.succeed(1), Fx.succeed(\"ready\"))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/zip.ts",
      "line": 173
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.zipLatest",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.zipLatest",
    "declarationKey": "declaration:8caaa24e79c99d5b6fa26c93",
    "family": "variable",
    "signatures": [
      "export declare const zipLatest: {\n    <AR, ER, RR>(that: Fx<AR, ER, RR>): <AL, EL, RL>(self: Fx<AL, EL, RL>) => Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n    <AL, EL, RL, AR, ER, RR>(self: Fx<AL, EL, RL>, that: Fx<AR, ER, RR>): Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 173,
          "column": 14
        },
        "end": {
          "line": 187,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 174,
          "column": 3
        },
        "end": {
          "line": 176,
          "column": 84
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 177,
          "column": 3
        },
        "end": {
          "line": 180,
          "column": 46
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#zipLatest"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:8caaa24e79c99d5b6fa26c93"
  },
  "declaration": {
    "declarationKey": "declaration:8caaa24e79c99d5b6fa26c93",
    "name": "zipLatest",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const zipLatest: {\n    <AR, ER, RR>(that: Fx<AR, ER, RR>): <AL, EL, RL>(self: Fx<AL, EL, RL>) => Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n    <AL, EL, RL, AR, ER, RR>(self: Fx<AL, EL, RL>, that: Fx<AR, ER, RR>): Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 173,
              "column": 14
            },
            "end": {
              "line": 187,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<AR, ER, RR>(that: Fx<AR, ER, RR>): <AL, EL, RL>(self: Fx<AL, EL, RL>) => Fx<readonly [\n    AL,\n    AR\n], EL | ER, RL | RR>;",
          "<AL, EL, RL, AR, ER, RR>(self: Fx<AL, EL, RL>, that: Fx<AR, ER, RR>): Fx<readonly [\n    AL,\n    AR\n], EL | ER, RL | RR>;"
        ],
        "typeParameters": [
          "AR",
          "ER",
          "RR",
          "AL",
          "EL",
          "RL"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 174,
              "column": 3
            },
            "end": {
              "line": 176,
              "column": 84
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 177,
              "column": 3
            },
            "end": {
              "line": 180,
              "column": 46
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const zipLatest: {\n    <AR, ER, RR>(that: Fx<AR, ER, RR>): <AL, EL, RL>(self: Fx<AL, EL, RL>) => Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n    <AL, EL, RL, AR, ER, RR>(self: Fx<AL, EL, RL>, that: Fx<AR, ER, RR>): Fx<readonly [\n        AL,\n        AR\n    ], EL | ER, RL | RR>;\n};"
    ],
    "typeParameters": [
      "AR",
      "ER",
      "RR",
      "AL",
      "EL",
      "RL"
    ],
    "summary": "Zips two Fx streams by latest values: waits for both to emit at least once,\nthen emits `[left, right]` whenever **either** stream emits (using the latest\nvalue from the other). No strict pairing; output count is the sum of\nemissions from both after the first pair.\n\n**Completion:** Completes when **both** streams have completed.\n**Errors:** The first failure from either stream fails the result.",
    "sections": {
      "Why": "`zipLatest` combines independent sources as state: after both initialize, either update emits one\npair containing both latest values. It does not enforce one-to-one pairing.",
      "Ownership and lifetime": "It delegates to `tuple`: both sources run concurrently and retain one latest value each until\nboth complete or the consumer is interrupted."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst latest = Fx.zipLatest(Fx.succeed(1), Fx.succeed(\"ready\"))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 173,
          "column": 14
        },
        "end": {
          "line": 187,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 174,
          "column": 3
        },
        "end": {
          "line": 176,
          "column": 84
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 177,
          "column": 3
        },
        "end": {
          "line": 180,
          "column": 46
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
