cli icon indicating copy to clipboard operation
cli copied to clipboard

Typescript type for `interval` is generated as `unknown`

Open ankushg opened this issue 3 years ago • 1 comments

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?

ankushg avatar Dec 28 '22 16:12 ankushg

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

kirillmarkelov avatar May 01 '23 11:05 kirillmarkelov