UNPKG

@nuxt/scripts

Version:

Load third-party scripts with better performance, privacy and DX in Nuxt Apps.

53 lines (52 loc) 1.87 kB
import { type HTMLAttributes, type ReservedProps } from 'vue'; import type { PayPalMarksComponentOptions } from '@paypal/paypal-js'; import type { ElementScriptTrigger } from '#nuxt-scripts/types'; import type { PayPalInput } from '../registry/paypal.js'; type __VLS_Props = { /** * Customize the root element attributes. */ rootAttrs?: HTMLAttributes & ReservedProps & Record<string, unknown>; /** * Defines the trigger event to load the script. */ trigger?: ElementScriptTrigger; /** * The client id for the paypal script. */ clientId?: string; /** * The options for the paypal marks. */ marksOptions?: PayPalMarksComponentOptions; /** * The paypal script options. */ paypalScriptOptions?: Partial<PayPalInput>; }; declare var __VLS_1: {}, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {}; type __VLS_Slots = {} & { placeholder?: (props: typeof __VLS_1) => any; } & { loading?: (props: typeof __VLS_3) => any; } & { awaitingLoad?: (props: typeof __VLS_10) => any; } & { error?: (props: typeof __VLS_12) => any; } & { default?: (props: typeof __VLS_14) => any; }; declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, { trigger: ElementScriptTrigger; clientId: string; paypalScriptOptions: Partial<PayPalInput>; marksOptions: PayPalMarksComponentOptions; }, {}, {}, {}, 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; }; };