# Text

Represents static, dynamic, or sparse text content.

## Signatures

```ts
export type Text = TextNode | TextPartNode | SparseTextNode;
```

## Why

Text-only element contexts need a dedicated union for correct escaping and
closing-tag neutralization.

## Ownership and lifetime

The alias describes AST data and owns no native Text node.

## Examples

```ts
import { TextNode, type Text } from "@typed/template/Template"

const text: Text = new TextNode("hello")
```
