SupabaseS
Supabase11mo ago
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"


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.
Was this page helpful?