UNPKG

478 BTypeScriptView Raw
1import React from 'react';
2import { ScriptHTMLAttributes } from 'react';
3export interface Props extends ScriptHTMLAttributes<HTMLScriptElement> {
4 strategy?: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive';
5 id?: string;
6 onLoad?: () => void;
7 onError?: () => void;
8 children?: React.ReactNode;
9}
10export declare function initScriptLoader(scriptLoaderItems: Props[]): void;
11declare function Script(props: Props): JSX.Element | null;
12export default Script;