summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/node/node_modules/lit-html/directives/unsafe-html.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/node/node_modules/lit-html/directives/unsafe-html.d.ts')
-rw-r--r--chromium/third_party/node/node_modules/lit-html/directives/unsafe-html.d.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/third_party/node/node_modules/lit-html/directives/unsafe-html.d.ts b/chromium/third_party/node/node_modules/lit-html/directives/unsafe-html.d.ts
new file mode 100644
index 00000000000..8ad4e07a026
--- /dev/null
+++ b/chromium/third_party/node/node_modules/lit-html/directives/unsafe-html.d.ts
@@ -0,0 +1,27 @@
+/**
+ * @license
+ * Copyright 2017 Google LLC
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+import { nothing, TemplateResult, noChange } from '../lit-html.js';
+import { Directive, PartInfo } from '../directive.js';
+export declare class UnsafeHTMLDirective extends Directive {
+ static directiveName: string;
+ static resultType: number;
+ private _value;
+ private _templateResult?;
+ constructor(partInfo: PartInfo);
+ render(value: string | typeof nothing | typeof noChange | undefined | null): typeof noChange | typeof nothing | TemplateResult | null | undefined;
+}
+/**
+ * Renders the result as HTML, rather than text.
+ *
+ * The values `undefined`, `null`, and `nothing`, will all result in no content
+ * (empty string) being rendered.
+ *
+ * Note, this is unsafe to use with any user-provided input that hasn't been
+ * sanitized or escaped, as it may lead to cross-site-scripting
+ * vulnerabilities.
+ */
+export declare const unsafeHTML: (value: string | typeof noChange | typeof nothing | null | undefined) => import("../directive.js").DirectiveResult<typeof UnsafeHTMLDirective>;
+//# sourceMappingURL=unsafe-html.d.ts.map \ No newline at end of file