We’ve added official TypeScript support to our Node.js library.
You now have type errors, autocompletion for API fields and params, in-editor documentation, and much more!
Get started at https://github.com/stripe/stripe-node#usage-with-typescript … and catch those errors early.
pic.twitter.com/FmlTa1wXZk
-
-
-
-
Replying to @stripe
Trying to get `last4` from customer. We use `_customer.sources.data[0].last4`, but last4 is not a key under `CustomerSource`. Just a type issue I think.
1 reply 0 retweets 0 likes
Replying to @leog0esger
Thanks for clarifying! Not all sources have last4 which could be contributing to this. Mind DMing us to chat more?https://twitter.com/messages/compose?recipient_id=102812444 …
4:17 PM - 31 Jan 2020
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Hey there—mind sharing a bit more with us here?