calcom / platform-starter-kit

Cal.com Platform: Starter Kit
https://experts.cal.com
MIT License
143 stars 17 forks source link

use typescript type defintion #22

Open Udit-takkar opened 2 weeks ago

Udit-takkar commented 2 weeks ago

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