Issue
Deno types show /*unresolved*/ any
– I get no type information
Example
import Stripe from 'stripe';
const stripe = Stripe(stripeApiKey);
const paymentIntent: Stripe.PaymentIntent =
await stripe.paymentIntents.create({
amount: 1000,
});
Solution
Turns out the types were half-way working, but not fully, because
const stripe = new Stripe(stripeApiKey);
was missing new
.
Answered By - Kirk Strobeck
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.