include.d.ts 636 B

123456789101112131415161718192021
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlInclude extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. src: string;
  6. mode: 'cors' | 'no-cors' | 'same-origin';
  7. allowScripts: boolean;
  8. slLoad: EventEmitter<void>;
  9. slError: EventEmitter<{
  10. status: number;
  11. }>;
  12. connectedCallback(): void;
  13. executeScript(script: HTMLScriptElement): void;
  14. loadSource(): Promise<void>;
  15. render(): import("lit-html").TemplateResult<1>;
  16. }
  17. declare global {
  18. interface HTMLElementTagNameMap {
  19. 'sl-include': SlInclude;
  20. }
  21. }