Skip to content
New issue

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

use typescript type defintion #22

Open
Udit-takkar opened this issue Jun 16, 2024 · 0 comments
Open

use typescript type defintion #22

Udit-takkar opened this issue Jun 16, 2024 · 0 comments

Comments

@Udit-takkar
Copy link
Contributor

we can generate types and use it

const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_ANON_KEY)
Ref: https://supabase.com/docs/guides/api/rest/generating-types#using-typescript-type-definitions

instead of

const supabaseBrowserClient = createClient(env.NEXT_PUBLIC_SUPABASE_URL, env.NEXT_PUBLIC_SUPABASE_ANON_KEY);
in https://github.com/calcom/platform-starter-kit/blob/main/src/app/dashboard/settings/_components/supabase-react-dropzone.tsx#L10

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

No branches or pull requests

1 participant