pgtyped
pgtyped copied to clipboard
Parse big integers as BigInt
Allow parsing big integers into JS BigInt.
This should be exposed as an override-able config option bigInt: bigint | string | number.
Any way I can help out on this?
Any updates on this? Without this feature I can hardly imagine any use of this library in production.
Wondering about this one as well
@adelsz , any update? And thanks for this package :)
@technic @roei3000b @karibertils @jb-reefer
This is possible in v2.1.0 using a type override. We now have a test case demonstrating this too: https://github.com/adelsz/pgtyped/commit/eae091b4d8da5026d355e920b63ccc7d5fc5a3b3
There is a section in the docs on this too: https://pgtyped.vercel.app/docs/typing