From 09bd7fc3fe42fb41746136a2ec87d01b5a41cb98 Mon Sep 17 00:00:00 2001 From: Lukas <69743171+quick007@users.noreply.github.com> Date: Mon, 25 Nov 2024 09:39:31 -0800 Subject: [PATCH] Fix command in documentation for typescript (#30630) Update generating-types.mdx --- apps/docs/content/guides/api/rest/generating-types.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/guides/api/rest/generating-types.mdx b/apps/docs/content/guides/api/rest/generating-types.mdx index 6fafcc323dd..c5cf62d86e8 100644 --- a/apps/docs/content/guides/api/rest/generating-types.mdx +++ b/apps/docs/content/guides/api/rest/generating-types.mdx @@ -37,13 +37,13 @@ npx supabase init Generate types for your project to produce the `database.types.ts` file: ```bash -npx supabase gen types --lang=typescript --project-id "$PROJECT_REF" --schema public > database.types.ts +npx supabase gen types typescript --project-id "$PROJECT_REF" --schema public > database.types.ts ``` or in case of local development: ```bash -npx supabase gen types --lang=typescript --local > database.types.ts +npx supabase gen types typescript --local > database.types.ts ``` These types are generated from your database schema. Given a table `public.movies`, the generated types will look like: