react-plaid-link icon indicating copy to clipboard operation
react-plaid-link copied to clipboard

Incorrect type for `PlaidAccount`

Open sderrow opened this issue 9 months ago • 0 comments

The definition of PlaidAccount is currently this, which has no class_type and says that verification_status is always a string. However, according to the API docs and from what I've seen during real-world use, the correct type should be the following, where verification_status is nullable and class_type is specified.

export interface PlaidAccount {
  id: string;
  name: string;
  mask: string;
  type: string;
  subtype: string;
  verification_status: string | null;
  class_type: string | null;
}

sderrow avatar May 05 '25 16:05 sderrow