#juni-checkout-event
1 messages · Page 1 of 1 (latest)
Hello! I'm not sure I understand what you're discussing. What is "SessionResource"? Where does that come from?
On the list of events here (https://stripe.com/docs/api/events/types?lang=node) checkout.session.completed (not paid, sorry) says the event type is a "checkout session". Going to that link, it shows me docs for the Session object. Intuitively, I would expect there to be a Stripe.Session type similar to how there's a Stripe.Customer type for the Customer object.
How should I type-annotate this event object since this doesn't exist?
And/or is there existing typescript documentation for stripe?
Oh I see, for some reason Stripe.Checkout.Session slipped past me
https://github.com/stripe/stripe-node/tree/8e22df2d715123fe377494ae1a1f9ec6e388a3ac#usage-with-typescript we do support Typescript and we have types for all resources