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

Allow required integration options #19

Open
zcei opened this issue Mar 12, 2021 · 0 comments
Open

Allow required integration options #19

zcei opened this issue Mar 12, 2021 · 0 comments
Milestone

Comments

@zcei
Copy link
Contributor

zcei commented Mar 12, 2021

Our current TypeScript setup has no way to enforce required options on an integration.

Ideally we need to make IntegrationConfig a generic to be able to accomodate for different required options. But that means we need to be able to distinguish between the different passed integrations.

e.g.

export interface IntegrationConfig<
  O extends IntegrationConfigOptions = IntegrationConfigOptions
> {}

export function useIntegration<O extends IntegrationConfigOptions>() {}
@axe312ger axe312ger added this to the v2 milestone Jan 4, 2024
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

2 participants