You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: add typed interfaces for SQL/REST API integrations #79
The Doc<'integrations'> type from Convex doesn't properly capture optional/discriminated fields like sqlConnectionConfig and sqlOperations at the type level. This leads to widespread any usage and type assertions throughout the integration-related code:
functionisSqlIntegration(integration: Doc<'integrations'>): integration is SqlIntegration{returnintegration.type==='sql'&&'sqlConnectionConfig'inintegration;}
Update all consumers to use type guards instead of any casts.
Context
This issue was identified during PR #76 code review. The current pattern works but violates TypeScript best practices and the project's coding guidelines which prohibit type casting and any usage.
Activity
refactor(integrations): add typed interfaces for SQL/REST API integra…
refactor(integrations): add typed interfaces for SQL/REST API integra…
refactor(integrations): add typed interfaces for SQL/REST API integra…
refactor(integrations): add typed interfaces for SQL/REST API integra…