summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/node/node_modules/lit-html/directives/template-content.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/node/node_modules/lit-html/directives/template-content.d.ts')
-rw-r--r--chromium/third_party/node/node_modules/lit-html/directives/template-content.d.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/third_party/node/node_modules/lit-html/directives/template-content.d.ts b/chromium/third_party/node/node_modules/lit-html/directives/template-content.d.ts
new file mode 100644
index 00000000000..f28bd204677
--- /dev/null
+++ b/chromium/third_party/node/node_modules/lit-html/directives/template-content.d.ts
@@ -0,0 +1,26 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+import { noChange } from '../lit-html.js';
+import { Directive, PartInfo } from '../directive.js';
+declare class TemplateContentDirective extends Directive {
+ private _previousTemplate?;
+ constructor(partInfo: PartInfo);
+ render(template: HTMLTemplateElement): DocumentFragment | typeof noChange;
+}
+/**
+ * Renders the content of a template element as HTML.
+ *
+ * Note, the template should be developer controlled and not user controlled.
+ * Rendering a user-controlled template with this directive
+ * could lead to cross-site-scripting vulnerabilities.
+ */
+export declare const templateContent: (template: HTMLTemplateElement) => import("../directive.js").DirectiveResult<typeof TemplateContentDirective>;
+/**
+ * The type of the class that powers this directive. Necessary for naming the
+ * directive's return type.
+ */
+export type { TemplateContentDirective };
+//# sourceMappingURL=template-content.d.ts.map \ No newline at end of file