© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
15 replies
Despair

Incorrect typescript type generation

As the title suggests, when generating types SQL BIGINTs are converted to numbers, whereas they should be converted to bigints.
Needless to say this results in data loss, both ingress and egress.

I'm trying to find where the actual conversion code is located at inside the official repository to fix this and make it my second contribution.

After looking at kong's container logs, I see
192.168.0.109 - - [02/Feb/2025:21:53:29 +0000] "GET /api/v1/projects/default/types/typescript?included_schemas=public%2C+storage HTTP/1.1" 200 2119 "http://192.168.0.110:8000/project/default/api?page=tables-intro" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0"
192.168.0.109 - - [02/Feb/2025:21:53:29 +0000] "GET /api/v1/projects/default/types/typescript?included_schemas=public%2C+storage HTTP/1.1" 200 2119 "http://192.168.0.110:8000/project/default/api?page=tables-intro" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0"


However when looking at the /volumes/api/kong.yml, I don't see anything mapped to /api/v1, so this is where I get lost.

If anyone knows where the actual code which takes care of generation is located, please let me know.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Type generation error
SupabaseSSupabase / help-and-questions
4mo ago
Type generation for Kotlin
SupabaseSSupabase / help-and-questions
6mo ago
CLI type generation and UUIDs
SupabaseSSupabase / help-and-questions
5mo ago
Supabase type generation not working
SupabaseSSupabase / help-and-questions
4y ago