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

Offer easier way to add all providers #37

Closed
stefandesu opened this issue Sep 21, 2021 · 1 comment
Closed

Offer easier way to add all providers #37

stefandesu opened this issue Sep 21, 2021 · 1 comment
Labels
feature Additional functionality

Comments

@stefandesu
Copy link
Member

Currently, all providers are exported together with the other stuff, so if you need all providers, there's currently no easy way to do this. Ideally, you could do something like this:

import { cdk } from "cocoda-sdk"
import * as providers from "cocoda-sdk/providers"
Object.values(providers).forEach(provider => cdk.addProvider(provider))
@stefandesu stefandesu added the feature Additional functionality label Sep 21, 2021
@stefandesu
Copy link
Member Author

Made it even easier:

import { cdk, addAllProviders } from "cocoda-sdk"
addAllProviders()

👍

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

No branches or pull requests

1 participant