cli
cli copied to clipboard
Typescript type for `interval` is generated as `unknown`
I've got an INTERVAL column in my database, but the TS type is being generated as unknown.
Is there a TS type that can accurately represent this?
Running into the same issue
That's what returned from db
sql value -> json value
0 years 0 mons 30 days 0 hours 0 mins 0.0 secs -> "30 days"
0 years 0 mons 0 days 0 hours 0 mins 0.0 secs -> "00:00:00"
At least INTERVAL values might be of type string