Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basePath is missing type definition #464

Open
kuperavv opened this issue Sep 2, 2021 · 0 comments
Open

basePath is missing type definition #464

kuperavv opened this issue Sep 2, 2021 · 0 comments

Comments

@kuperavv
Copy link

kuperavv commented Sep 2, 2021

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',
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant