We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Typescript error "Expected 0 type arguments, but got 1" when doing type injection as described here but with "@supabase/auth-helpers-sveltekit"
There was a previous ticket #407 which is marked as closed but this does not work for me.
Run supabase gen types typescript --local > ./app/src/lib/generated/definitions.ts
supabase gen types typescript --local > ./app/src/lib/generated/definitions.ts
Add Superbase interface to app.d.ts and reference the generated types
app.d.ts
Add type argument to createClient()
The text was updated successfully, but these errors were encountered:
No need to add the types in createClient, they are automatically set by the type in app.d.ts
createClient
Sorry, something went wrong.
Ah! Thank you!
No branches or pull requests
Bug report
Describe the bug
Typescript error "Expected 0 type arguments, but got 1" when doing type injection as described here but with "@supabase/auth-helpers-sveltekit"
There was a previous ticket #407 which is marked as closed but this does not work for me.
To Reproduce
Run
supabase gen types typescript --local > ./app/src/lib/generated/definitions.ts
Add Superbase interface to
app.d.ts
and reference the generated typesAdd type argument to createClient()
System information
The text was updated successfully, but these errors were encountered: