maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
20 lines (19 loc) • 479 B
TypeScript
export interface ScriptLoaderOptions {
identifier: string;
src: string;
once?: boolean;
async?: boolean;
defer?: boolean;
}
export declare class ScriptLoader {
private src;
private script?;
private once;
private async;
private defer;
private identifier;
constructor({ src, identifier, once, async, defer }: ScriptLoaderOptions);
removeTag(tag: Element | string): void;
load(): Promise<unknown>;
private injectScript;
}