{
  "id": "@typed/template/HtmlChunk#HtmlPartChunk",
  "canonicalId": "@typed/template#HtmlPartChunk",
  "symbol": {
    "id": "@typed/template/HtmlChunk#HtmlPartChunk",
    "packageName": "@typed/template",
    "moduleName": "HtmlChunk",
    "exportName": "HtmlPartChunk",
    "kind": "interface",
    "signatures": [
      "export interface HtmlPartChunk {\n    readonly _tag: \"part\";\n    readonly node: Template.PartNode;\n    readonly render: (value: unknown) => string;\n}"
    ],
    "summary": "A chunk representing a dynamic part (interpolation).",
    "sections": {
      "Why": "The parsed part and its context-aware serializer stay together, avoiding a\ngeneric raw-HTML interpolation path.",
      "Ownership and lifetime": "The record borrows the parsed node and pure serializer; evaluation belongs to\nthe HTML-rendering Fx.",
      "Property: _tag": "Identifies a single dynamic part chunk.",
      "Property: _tag: Why": "Enables exhaustive renderer dispatch.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata owned by the chunk.",
      "Property: node": "The parsed dynamic part whose index selects the input value.",
      "Property: node: Why": "Preserves the exact HTML context for serialization.",
      "Property: node: Ownership and lifetime": "The chunk borrows the immutable AST node.",
      "Property: render": "Function to render the value of this part into a string.",
      "Property: render: Why": "Each part keeps its context-specific escaping function.",
      "Property: render: Ownership and lifetime": "The pure function retains no application value between calls."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { templateToHtmlChunks, type HtmlPartChunk } from \"@typed/template/HtmlChunk\"\nimport { parse } from \"@typed/template/Parser\"\n\nconst chunk = templateToHtmlChunks(parse([\"<p>\", \"</p>\"]))[1] as HtmlPartChunk"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/HtmlChunk.ts",
      "line": 129
    },
    "since": "1.0.0",
    "category": "Dynamic HTML chunks"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/HtmlChunk#HtmlPartChunk",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "HtmlChunk",
    "consumerSpecifier": "@typed/template/HtmlChunk",
    "exportName": "HtmlPartChunk",
    "qualifiedName": "HtmlPartChunk",
    "declarationKey": "declaration:794964179a1c29dacedfb577",
    "family": "interface",
    "signatures": [
      "export interface HtmlPartChunk {\n    readonly _tag: \"part\";\n    readonly node: Template.PartNode;\n    readonly render: (value: unknown) => string;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 129,
          "column": 1
        },
        "end": {
          "line": 172,
          "column": 2
        }
      },
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 142,
          "column": 3
        },
        "end": {
          "line": 142,
          "column": 25
        }
      },
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 155,
          "column": 3
        },
        "end": {
          "line": 155,
          "column": 36
        }
      },
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 171,
          "column": 3
        },
        "end": {
          "line": 171,
          "column": 47
        }
      }
    ],
    "aliases": [
      "@typed/template#HtmlPartChunk"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:794964179a1c29dacedfb577",
    "name": "HtmlPartChunk",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "export interface HtmlPartChunk {\n    readonly _tag: \"part\";\n    readonly node: Template.PartNode;\n    readonly render: (value: unknown) => string;\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/HtmlChunk.ts",
            "start": {
              "line": 129,
              "column": 1
            },
            "end": {
              "line": 172,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly _tag: \"part\";"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/HtmlChunk.ts",
            "start": {
              "line": 142,
              "column": 3
            },
            "end": {
              "line": 142,
              "column": 25
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly node: Template.PartNode;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/HtmlChunk.ts",
            "start": {
              "line": 155,
              "column": 3
            },
            "end": {
              "line": 155,
              "column": 36
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly render: (value: unknown) => string;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/HtmlChunk.ts",
            "start": {
              "line": 171,
              "column": 3
            },
            "end": {
              "line": 171,
              "column": 47
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export interface HtmlPartChunk {\n    readonly _tag: \"part\";\n    readonly node: Template.PartNode;\n    readonly render: (value: unknown) => string;\n}"
    ],
    "typeParameters": [],
    "summary": "A chunk representing a dynamic part (interpolation).",
    "sections": {
      "Why": "The parsed part and its context-aware serializer stay together, avoiding a\ngeneric raw-HTML interpolation path.",
      "Ownership and lifetime": "The record borrows the parsed node and pure serializer; evaluation belongs to\nthe HTML-rendering Fx.",
      "Property: _tag": "Identifies a single dynamic part chunk.",
      "Property: _tag: Why": "Enables exhaustive renderer dispatch.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata owned by the chunk.",
      "Property: node": "The parsed dynamic part whose index selects the input value.",
      "Property: node: Why": "Preserves the exact HTML context for serialization.",
      "Property: node: Ownership and lifetime": "The chunk borrows the immutable AST node.",
      "Property: render": "Function to render the value of this part into a string.",
      "Property: render: Why": "Each part keeps its context-specific escaping function.",
      "Property: render: Ownership and lifetime": "The pure function retains no application value between calls."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { templateToHtmlChunks, type HtmlPartChunk } from \"@typed/template/HtmlChunk\"\nimport { parse } from \"@typed/template/Parser\"\n\nconst chunk = templateToHtmlChunks(parse([\"<p>\", \"</p>\"]))[1] as HtmlPartChunk"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 129,
          "column": 1
        },
        "end": {
          "line": 172,
          "column": 2
        }
      },
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 142,
          "column": 3
        },
        "end": {
          "line": 142,
          "column": 25
        }
      },
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 155,
          "column": 3
        },
        "end": {
          "line": 155,
          "column": 36
        }
      },
      {
        "file": "packages/template/src/HtmlChunk.ts",
        "start": {
          "line": 171,
          "column": 3
        },
        "end": {
          "line": 171,
          "column": 47
        }
      }
    ],
    "since": "1.0.0",
    "category": "Dynamic HTML chunks"
  }
}
