mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 04:45:08 +03:00
Fix command in documentation for typescript (#30630)
Update generating-types.mdx
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user