react-all-player
Version:
react-all-player is a simple, lightweight, accessible and customizable React media player that supports modern browsers.
7 lines (6 loc) • 339 B
TypeScript
declare type AllowedAttributes = 'type' | 'charset' | 'async' | 'text';
declare type Options = Partial<Pick<HTMLScriptElement, AllowedAttributes>> & {
attrs?: Record<string, string>;
};
declare function loadScript<T>(src: HTMLScriptElement['src'], variableName: string, options?: Options): Promise<T>;
export default loadScript;