{
  "id": "@typed/template#HtmlChunk",
  "canonicalId": "@typed/template#HtmlChunk",
  "symbol": {
    "id": "@typed/template#HtmlChunk",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "HtmlChunk",
    "kind": "type",
    "signatures": [
      "export type HtmlChunk = HtmlTextChunk | HtmlPartChunk | HtmlSparsePartChunk;"
    ],
    "summary": "Represents a piece of a pre-compiled HTML template.\n\nChunks allow the renderer to stream static parts of the HTML immediately\nwhile waiting for dynamic parts to be resolved.",
    "sections": {
      "Why": "Chunks separate immediately writable author markup from dynamic work, which\nlets the HTML renderer preserve template order while remaining push-based.",
      "Ownership and lifetime": "Chunks are immutable rendering descriptions. The Fx that evaluates them owns\nsubscriptions; the response sink owns emitted strings."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { HtmlChunk } from \"@typed/template/HtmlChunk\"\nimport { templateToHtmlChunks } from \"@typed/template/HtmlChunk\"\nimport { parse } from \"@typed/template/Parser\"\n\nconst template = parse([\"<div>Hello \", \"</div>\"])\nconst chunks = templateToHtmlChunks(template)\n\n// chunks will contain:\n// - HtmlTextChunk with text \"<div>Hello \"\n// - HtmlPartChunk for the dynamic part\n// - HtmlTextChunk with text \"</div>\""
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/HtmlChunk.ts",
      "line": 45
    },
    "since": "1.0.0",
    "category": "HTML chunk protocol"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#HtmlChunk",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "HtmlChunk",
    "qualifiedName": "HtmlChunk",
    "declarationKey": "declaration:165cf863ce90c584b05aa2c7",
    "family": "type-alias",
    "signatures": [
      "export type HtmlChunk = HtmlTextChunk | HtmlPartChunk | HtmlSparsePartChunk;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 45,
          "column": 1
        },
        "end": {
          "line": 45,
          "column": 77
        }
      }
    ],
    "aliases": [
      "@typed/template/HtmlChunk#HtmlChunk"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:165cf863ce90c584b05aa2c7",
    "name": "HtmlChunk",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type HtmlChunk = HtmlTextChunk | HtmlPartChunk | HtmlSparsePartChunk;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/HtmlChunk.ts",
            "start": {
              "line": 45,
              "column": 1
            },
            "end": {
              "line": 45,
              "column": 77
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export type HtmlChunk = HtmlTextChunk | HtmlPartChunk | HtmlSparsePartChunk;"
    ],
    "typeParameters": [],
    "summary": "Represents a piece of a pre-compiled HTML template.\n\nChunks allow the renderer to stream static parts of the HTML immediately\nwhile waiting for dynamic parts to be resolved.",
    "sections": {
      "Why": "Chunks separate immediately writable author markup from dynamic work, which\nlets the HTML renderer preserve template order while remaining push-based.",
      "Ownership and lifetime": "Chunks are immutable rendering descriptions. The Fx that evaluates them owns\nsubscriptions; the response sink owns emitted strings."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { HtmlChunk } from \"@typed/template/HtmlChunk\"\nimport { templateToHtmlChunks } from \"@typed/template/HtmlChunk\"\nimport { parse } from \"@typed/template/Parser\"\n\nconst template = parse([\"<div>Hello \", \"</div>\"])\nconst chunks = templateToHtmlChunks(template)\n\n// chunks will contain:\n// - HtmlTextChunk with text \"<div>Hello \"\n// - HtmlPartChunk for the dynamic part\n// - HtmlTextChunk with text \"</div>\""
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 45,
          "column": 1
        },
        "end": {
          "line": 45,
          "column": 77
        }
      }
    ],
    "since": "1.0.0",
    "category": "HTML chunk protocol"
  }
}
