fuentesloic / nuxt-stripe

MIT License
90 stars 8 forks source link

bug: missing typescript support #24

Closed sandros94 closed 1 year ago

sandros94 commented 1 year ago

Pretty much title says everything, in the current state there is almost no Typescript support.

sandros94 commented 1 year ago

Testing on a different machine it seems it could be a problem on my end, now I see other interfaces but not all.

Closing for now

g1ronn1mo commented 4 months ago

I had the same Problem:

import type { Stripe } from '@stripe/stripe-js';
const stripeClient = await useClientStripe() as Stripe;

Just init the stripe Client with the namespace Stripe. A bit anoying, but does the trick. Maybe this gets fixed.