Fix command in documentation for typescript (#30630)

Update generating-types.mdx
This commit is contained in:
Lukas authored and GitHub committed 2024-11-25 17:39:31 +00:00
1 parent baa19e01dc
commit 09bd7fc3fe
1 file changed
+2 -2
@@ -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: