UNPKG

1.1 kBTypeScriptView Raw
1export * from '../types/components';
2export 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}
11export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
12export declare function applyPolyfills(): Promise<void>;
13
14/**
15 * Used to specify a nonce value that corresponds with an application's CSP.
16 * When set, the nonce will be added to all dynamically created script and style tags at runtime.
17 * Alternatively, the nonce value can be set on a meta tag in the DOM head
18 * (<meta name="csp-nonce" content="{ nonce value here }" />) which
19 * will result in the same behavior.
20 */
21export declare function setNonce(nonce: string): void;