Skip to content

Commit

Permalink
refactor: export types
Browse files Browse the repository at this point in the history
  • Loading branch information
softbeehive committed Nov 10, 2021
1 parent d469d48 commit ca1f828
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions types/vue-stripe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,21 @@ export type StripeElementsWithoutOverload = {
update: (options: StripeElementsUpdateOptions) => void
}

declare module 'vue-stripe-js' {
export const initStripe: (
key: string,
options: StripeConstructorOptions
) => unknown | Stripe
export const initStripe: (
key: string,
options: StripeConstructorOptions
) => unknown | Stripe

export const createElements: (
instance: Stripe,
options?: StripeElementsOptions
) => unknown | StripeElements
export const createElements: (
instance: Stripe,
options?: StripeElementsOptions
) => unknown | StripeElements

export const createElement: (
elements: StripeElements,
elementType: StripeElementType,
options?: StripeElementOptions
) => unknown | StripeElement
export const createElement: (
elements: StripeElements,
elementType: StripeElementType,
options?: StripeElementOptions
) => unknown | StripeElement

export const StripeElements: Component
export const StripeElement: Component
}
export const StripeElements: Component
export const StripeElement: Component

0 comments on commit ca1f828

Please sign in to comment.