legacy.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * @license
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. import '../environment/dev';
  6. import { SafeHtml } from '../internals/html_impl';
  7. import { TrustedResourceUrl } from '../internals/resource_url_impl';
  8. import { SafeScript } from '../internals/script_impl';
  9. import { SafeStyle } from '../internals/style_impl';
  10. import { SafeStyleSheet } from '../internals/style_sheet_impl';
  11. /**
  12. * Turns a string into SafeHtml for legacy API purposes.
  13. *
  14. * Please read fileoverview documentation before using.
  15. */
  16. export declare function legacyUnsafeHtml(s: string): SafeHtml;
  17. /**
  18. * Turns a string into SafeScript for legacy API purposes.
  19. *
  20. * Please read fileoverview documentation before using.
  21. */
  22. export declare function legacyUnsafeScript(s: string): SafeScript;
  23. /**
  24. * Turns a string into TrustedResourceUrl for legacy API purposes.
  25. *
  26. * Please read fileoverview documentation before using.
  27. */
  28. export declare function legacyUnsafeResourceUrl(s: string): TrustedResourceUrl;
  29. /**
  30. * Turns a string into SafeStyle for legacy API purposes.
  31. *
  32. * Please read fileoverview documentation before using.
  33. */
  34. export declare function legacyUnsafeStyle(s: string): SafeStyle;
  35. /**
  36. * Turns a string into SafeStyleSheet for legacy API purposes.
  37. *
  38. * Please read fileoverview documentation before using.
  39. */
  40. export declare function legacyUnsafeStyleSheet(s: string): SafeStyleSheet;