From e276e501d57b6111e69dd88a6563baf52fee122a Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Mon, 9 May 2022 11:27:50 -0700 Subject: [PATCH] Add small amount of documentation to describe how to render a TemplateResult --- packages/lit-html/src/lit-html.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/lit-html/src/lit-html.ts b/packages/lit-html/src/lit-html.ts index 43ee5fe05a..72bb29be85 100644 --- a/packages/lit-html/src/lit-html.ts +++ b/packages/lit-html/src/lit-html.ts @@ -446,9 +446,14 @@ const COMMENT_PART = 7; * The return type of the template tag functions, {@linkcode html} and * {@linkcode svg}. * - * This object captures the arguments passed into the tag function. A special - * array of strings that retain their identity between multiple evaluations of - * the tagged literal, and the values from the interpolated expressions. + * The `TemplateResult` object captures the arguments passed into the tag + * function. A special array of strings that retain their identity between + * multiple evaluations of the tagged literal, and the values from the + * interpolated expressions. + * + * To create or update DOM from the `TemplateResult` you need to render the + * `TemplateResult`. See [Rendering](https://lit.dev/docs/components/rendering) + * for more information. */ export type TemplateResult = { // This property needs to remain unminified.