type-alias / @typed/template/Template

Comment

Represents static, dynamic, or sparse comment content.

Package version
1.0.0-beta.13
Category
Comment content
Since
1.0.0

Import

import type { Comment } from "@typed/template/Template";

Signatures

export type Comment = CommentNode | CommentPartNode | SparseCommentNode;

Why

Native comments serve both authored output and transparent renderer markers.

Ownership and lifetime

The alias owns no native Comment node.

Examples

import { CommentNode, type Comment } from "@typed/template/Template"

const comment: Comment = new CommentNode("boundary")

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source