Skip to content

basePath is missing type definition #464

Description

@kuperavv

basePath is typed as string or null. Preferably should enforce a valid PlaidEnvironment.

const configuration = new Configuration({
basePath: PlaidEnvironments.sandbox,
baseOptions: {
headers: {
'PLAID-CLIENT-ID': process.env.PLAID_CLIENT_ID,
'PLAID-SECRET': process.env.PLAID_SECRET,
},
},
});

export const PlaidEnvironments: PlaidEnvironment = {
production: 'https://production.plaid.com',
sandbox: 'https://sandbox.plaid.com',
development: 'https://development.plaid.com',
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions