Skip to content

Conversation

@Dreaming-Codes
Copy link

TursoClientError was exported with 'export type' which only exports the TypeScript type, not the runtime class. This prevents users from using 'instanceof TursoClientError' to catch and handle API errors.

Changed to a regular export so the class is available at runtime.

TursoClientError was exported with 'export type' which only exports the TypeScript type, not the runtime class. This prevents users from using 'instanceof TursoClientError' to catch and handle API errors.

Changed to a regular export so the class is available at runtime.
Copilot AI review requested due to automatic review settings December 23, 2025 17:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the export of TursoClientError to make it available as a runtime value, enabling users to catch and identify API errors using instanceof checks.

  • Changed TursoClientError from a type-only export to a regular value export

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Successfully merging this pull request may close these issues.

1 participant