#sb

1 messages · Page 1 of 1 (latest)

lyric crystalBOT
formal bay
#

Yes that will work in ts functions as well. That error is a generic one about the context in which you are making this call

#

Whoops that wasn't the one I was thinking of but it is succinct. Let me know if that clear things up

ocean raven
#

Ah I see, I knew I could just make the caller async but I was just confused by the fact that the Stripe docs never seemed to include async in any caller

formal bay
#

Ah gotcha, that may just be for the purpose of keeping our code snippets succinct but I can see how it can give the wrong impression. You are right that in actual code you will be making this in async contexts

ocean raven
#

Cool thank you, I've never used typescript so was just checking if there was some TS magic going on that didn't apply to JS

#

Thank you very much

lyric crystalBOT