mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Update supabase.yml
This commit is contained in:
1 parent
8f4e197ba4
commit
0bbfd43dc3
1 file changed
+2
-2
@@ -191,9 +191,9 @@ pages:
|
||||
```bash
|
||||
npx openapi-typescript https://your-project.supabase.co/rest/v1/?apikey=your-anon-key --output types/supabase.ts
|
||||
```
|
||||
|
||||
|
||||
Important disclaimers:
|
||||
|
||||
|
||||
- The generator can't know if a column is specified as an array, and will thus just generate the type as `string`, even though supabase handles this automatically and returns arrays.
|
||||
You can fix this manually in the files by changing the type, e.g. `names: string` -> `names: string[]`
|
||||
- The types won't automatically stay in sync with your database, so make sure to regenerate your types after your make changes to your database.
|
||||
|
||||
Reference in new issue
Block a user