@nuxt/scripts
Version:
Load third-party scripts with better performance, privacy and DX in Nuxt Apps.
34 lines (33 loc) • 1.25 kB
TypeScript
import type { ElementScriptTrigger } from '#nuxt-scripts/types';
type __VLS_Props = {
serve: string;
placement: string;
format: string;
/**
* Defines the trigger event to load the script.
*/
trigger?: ElementScriptTrigger;
};
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
type __VLS_Slots = {} & {
awaitingLoad?: (props: typeof __VLS_1) => any;
} & {
loading?: (props: typeof __VLS_3) => any;
} & {
error?: (props: typeof __VLS_5) => any;
};
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
error: (error: string | Event) => any;
ready: (args_0: HTMLScriptElement) => any;
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
onError?: ((error: string | Event) => any) | undefined;
onReady?: ((args_0: HTMLScriptElement) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};