unsafe-svg.d.ts 1.0 KB

123456789101112131415161718192021222324252627
  1. /**
  2. * @license
  3. * Copyright 2017 Google LLC
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. import { UnsafeHTMLDirective } from './unsafe-html.js';
  7. declare class UnsafeSVGDirective extends UnsafeHTMLDirective {
  8. static directiveName: string;
  9. static resultType: number;
  10. }
  11. /**
  12. * Renders the result as SVG, rather than text.
  13. *
  14. * The values `undefined`, `null`, and `nothing`, will all result in no content
  15. * (empty string) being rendered.
  16. *
  17. * Note, this is unsafe to use with any user-provided input that hasn't been
  18. * sanitized or escaped, as it may lead to cross-site-scripting
  19. * vulnerabilities.
  20. */
  21. 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>;
  22. /**
  23. * The type of the class that powers this directive. Necessary for naming the
  24. * directive's return type.
  25. */
  26. export type { UnsafeSVGDirective };
  27. //# sourceMappingURL=unsafe-svg.d.ts.map