The default configs of pg-typed parses Postgres INTERVAL column data using postgres-interval npm package. This results in types generated for row object properties corresponding to interval results to be of type PostgresInterval that has a shape as follows:
Describe the bug
Recreated on:
The default configs of pg-typed parses Postgres
INTERVAL
column data usingpostgres-interval
npm package. This results in types generated for row object properties corresponding to interval results to be of typePostgresInterval
that has a shape as follows:But the corresponding types in the generated type definitions are of
string
type.Expected behavior
To have consistent compile time and runtime types for corresponding interval values.
Test case
Test cases added on https://github.com/adelsz/pgtyped/pull/553