@morenobr/guideline-react-hooks
Version:
Moreno Guideline hooks React used in Guideline
12 lines (11 loc) • 447 B
TypeScript
declare type TUseScriptParams = {
src: string;
options?: {
crossOrigin?: string;
};
onsuccess?: () => void;
onload?: (ev: Event) => void;
onerror?: (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => void;
};
declare const useEffectResScriptLoader: ({ src, options, onsuccess, onload, onerror }: TUseScriptParams) => void;
export default useEffectResScriptLoader;