#hype08

1 messages · Page 1 of 1 (latest)

empty iris
#

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...

woeful coyote
#

8.168.0

#

thanks Rubeus!

empty iris
#

It looks like you're trying to construct a Stripe Event using hardcoded data... is this for testing/mocking?

woeful coyote
#

yes!

#

not getting auto-fill but pretty sure the event coming in is of Stripe.TypedEvent<Stripe.Account>?

empty iris
#

I think the error is because line 35 just has type: with no value?

woeful coyote
#

ah yes i removed that

empty iris
#

Sorry, can you post a single screenshot of all the current code? It's really hard to flip between several.

woeful coyote
#

k

empty iris
#

Oh, so you've got two object: properties, one on line 35 and another on line 46. There should only be one.

#

Err, wait, why do you specify stripeAccount for both of those?

#

What do lines 34-36 do?

woeful coyote
#

ahh it turns out theres another TypedEvent in the mix added by one of our devs

#

might be the reason