bpms_site/.svn/pristine/69/6909225bc695b8d8c4cf1e908ebf43e3e30954fc.svn-base
2025-11-02 16:38:49 +03:30

20 lines
737 B
Plaintext

import React from 'react';
import { ScriptHTMLAttributes } from 'react';
export interface ScriptProps extends ScriptHTMLAttributes<HTMLScriptElement> {
strategy?: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive' | 'worker';
id?: string;
onLoad?: (e: any) => void;
onReady?: () => void | null;
onError?: (e: any) => void;
children?: React.ReactNode;
stylesheets?: string[];
}
/**
* @deprecated Use `ScriptProps` instead.
*/
export type Props = ScriptProps;
export declare function handleClientScriptLoad(props: ScriptProps): void;
export declare function initScriptLoader(scriptLoaderItems: ScriptProps[]): void;
declare function Script(props: ScriptProps): JSX.Element | null;
export default Script;