@usethrottle/checkout-react
    Preparing search index...

    Interface ThreeDSecureInstance

    Subset of the Secure Fields instance this module needs — real or mocked.

    Declared structurally rather than as Pick<SecureFields, …>: any reference to the SDK's own type from an exported declaration makes tsup emit import { SecureFields } from '@gr4vy/secure-fields' into dist/index.d.ts, and that package's exports map carries no types condition — so a consumer on moduleResolution: bundler gets TS7016 under skipLibCheck: false, or silently degrades the member to any under skipLibCheck: true (the Next default). The paths override in this package's tsconfig repairs our own compile only; it does not ship.

    Members use method syntax deliberately: TypeScript checks method parameters bivariantly, so the real class's narrower CombinedEvents event parameter stays assignable to the string declared here.

    interface ThreeDSecureInstance {
        addEventListener(
            event: string,
            callback: (...args: any[]) => void,
        ): void;
        addThreeDSecure(
            element: string | HTMLElement,
            options?: { challengeWindowSize?: "01" | "02" | "03" | "04" | "05" },
        ): void;
        removeEventListener?(
            event: string,
            callback: (...args: any[]) => void,
        ): void;
    }
    Index
    • Parameters

      • event: string
      • callback: (...args: any[]) => void

      Returns void

    • Parameters

      • element: string | HTMLElement
      • Optionaloptions: { challengeWindowSize?: "01" | "02" | "03" | "04" | "05" }

      Returns void

    • Parameters

      • event: string
      • callback: (...args: any[]) => void

      Returns void