Skip to content

Allow required integration options #19

@zcei

Description

@zcei

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>() {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions