index.d.ts 1.1 KB

123456789101112131415161718192021222324
  1. export * from '../dist/types/components';
  2. export interface CustomElementsDefineOptions {
  3. exclude?: string[];
  4. resourcesUrl?: string;
  5. syncQueue?: boolean;
  6. jmp?: (c: Function) => any;
  7. raf?: (c: FrameRequestCallback) => number;
  8. ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
  9. rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
  10. }
  11. export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
  12. /**
  13. * @deprecated
  14. */
  15. export declare function applyPolyfills(): Promise<void>;
  16. /**
  17. * Used to specify a nonce value that corresponds with an application's CSP.
  18. * When set, the nonce will be added to all dynamically created script and style tags at runtime.
  19. * Alternatively, the nonce value can be set on a meta tag in the DOM head
  20. * (<meta name="csp-nonce" content="{ nonce value here }" />) which
  21. * will result in the same behavior.
  22. */
  23. export declare function setNonce(nonce: string): void;