You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type '{ accounts: { account_id: string; profile: {}; }[]; }' is not assignable to parameter of type 'IUserAccount[]'.
Object literal may only specify known properties, and 'accounts' does not exist in type 'IUserAccount[]'.
Expected Behavior
Typescipt doesn't complain for the correct server payload
Actual Behavior
The example in the repo show passing in an object with an accounts property:
courier-node/README.md
Lines 837 to 843 in 041a204
However, this creates a type error:
But this response actually works.
If we keep typescript happy with:
We get a 400 error with:
{ message: 'must be object', type: 'invalid_request_error' }
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: