diff options
Diffstat (limited to 'chromium/third_party/node/node_modules/lit-html/directives/unsafe-svg.d.ts')
-rw-r--r-- | chromium/third_party/node/node_modules/lit-html/directives/unsafe-svg.d.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/third_party/node/node_modules/lit-html/directives/unsafe-svg.d.ts b/chromium/third_party/node/node_modules/lit-html/directives/unsafe-svg.d.ts new file mode 100644 index 00000000000..82f45cb0e0a --- /dev/null +++ b/chromium/third_party/node/node_modules/lit-html/directives/unsafe-svg.d.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +import { UnsafeHTMLDirective } from './unsafe-html.js'; +declare class UnsafeSVGDirective extends UnsafeHTMLDirective { + static directiveName: string; + static resultType: number; +} +/** + * Renders the result as SVG, 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 unsafeSVG: (value: string | typeof import("../lit-html.js").noChange | typeof import("../lit-html.js").nothing | null | undefined) => import("../directive.js").DirectiveResult<typeof UnsafeSVGDirective>; +/** + * The type of the class that powers this directive. Necessary for naming the + * directive's return type. + */ +export type { UnsafeSVGDirective }; +//# sourceMappingURL=unsafe-svg.d.ts.map
\ No newline at end of file |