UNPKG

xverse-components-utils

Version:

xverse components utils

34 lines (33 loc) 1.08 kB
interface ILoadScriptParam { async?: boolean; /** * Sets or retrieves the character set used to encode the object. * @deprecated */ charset?: string; crossOrigin?: string | null; /** Sets or retrieves the status of the script. */ defer?: boolean; /** * Sets or retrieves the event for which the script is written. * @deprecated */ event?: string; /** * Sets or retrieves the object that is bound to the event script. * @deprecated */ htmlFor?: string; integrity?: string; noModule?: boolean; referrerPolicy?: string; /** Retrieves or sets the text of the object as a string. */ text?: string; /** Sets or retrieves the MIME type for the associated scripting engine. */ type?: string; lazyLoad?: boolean; } export declare const loadScript: (src: string, param?: ILoadScriptParam) => Promise<unknown>; export declare const HLS_PACKAGE_CDN = "https://static.xverse.cn/npm/hls.js@1.2.8/dist/hls.min.js"; export declare const loadHls: () => Promise<void>; export {};