@ambitiondev/vue-cookiebot
Version:
Composable for Cookiebot in Vue applications
6 lines (5 loc) • 384 B
TypeScript
import type { ScriptAttribute } from '@ambitiondev/cookiebot-common';
export declare function useScriptHelper(scriptType?: string): {
createScriptWithOptions: (options: ScriptAttribute[], src: string, async?: boolean) => Promise<HTMLScriptElement>;
removeScript: (context: HTMLElement | HTMLBodyElement, script: HTMLElement | string, resetHTML?: boolean) => Promise<void>;
};