Skip to content

Conversation

ozanmakes
Copy link
Contributor

@ozanmakes ozanmakes commented Nov 11, 2023

This pull request fixes errors that occur when verbatimModuleSyntax is enabled in tsconfig.json. The affected types now use type-only import syntax.

Screenshot 2023-11-11 at 13 36 55

I get similar errors in my app code because my VSCode is set to display all workspace errors with typescript.tsserver.experimental.enableProjectDiagnostics

With verbatimModuleSyntax set to true in tsconfig.json, library users
get errors like this:

> 'Fetch' is a type and must be imported using a type-only import when
> 'verbatimModuleSyntax' is enabled.

This commit fixes the errors by using type-only import syntax for the
affected types.
@mandarini
Copy link
Contributor

Hi @ozanmakes ! Thanks for the contribution and your patience.

This repository is deprecated and has moved to the new Supabase JS monorepo. Since this PR has been inactive for over a year, I’m going to close it to keep the old repo tidy, before archiving.

If you believe this change is still needed, please open a new PR in the monorepo and include a link back to this thread for context:

Note: This old repository will be archived on October 10, 2025. Thank you again for your effort and understanding!

@mandarini mandarini closed this Oct 7, 2025
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.

2 participants