#hype08
1 messages · Page 1 of 1 (latest)
Hello! I don't know a ton about TypeScript, but I'll do my best to help you. Are you using the latest version of the Stripe Node library?
Pulling this into the thread...
It looks like you're trying to construct a Stripe Event using hardcoded data... is this for testing/mocking?
yes!
not getting auto-fill but pretty sure the event coming in is of Stripe.TypedEvent<Stripe.Account>?
I think the error is because line 35 just has type: with no value?
All Stripe Events need to have the structure documented here: https://stripe.com/docs/api/events/object
And then inside data.object you've got the structure of the object the Event describes.
Sorry, can you post a single screenshot of all the current code? It's really hard to flip between several.