#ANNA SUN-list-external-accounts
1 messages · Page 1 of 1 (latest)
Hey! Yes, that seems to be a rogue parameter. See types here: https://github.com/stripe/stripe-node/blob/b3c2ff0fe0a543d8f320c4baefed34e03edca26d/types/2020-08-27/ExternalAccounts.d.ts#L119-L124
So I have to add card in the array?
Im just confused why the doc shows that object there even though that's not correct
There's no object parameter, just omit it
so I have to add it inside expand?
No, expand is something else entirely
so how would I get only the cards?
Checking on this, seems like it's a limitation of the types for the Node client
Are you able to TS ignore that specific call and attempt it?
I just tried it out and yes it does work. If I do object: 'bank_account' it returns an empty array for data since I don't have a BA attached. If I use object: card it returns the actual card data
Ok, got it. We should probably fix those type definitions
You could raise an issue on the GH repo: https://github.com/stripe/stripe-node/issues
will do, thank you
Or I can flag it internally, let me know!
I just raised it, let me know if there's anything else you want me to add to it - https://github.com/stripe/stripe-node/issues/1351