spencermountain / spacetime

A lightweight javascript timezone library
http://spacetime.how/
Other
3.97k stars 185 forks source link

Wrong type returned for time() #331

Closed lukevella closed 2 years ago

lukevella commented 2 years ago

Hi, I noticed there seems to be a mistake in the types for the time() method. Currently it returns number but it actually returns a string.

https://github.com/spencermountain/spacetime/blob/3a6d8c3ff5db68ec6956e0f3273862eb5a828c04/types/types.d.ts#L195

spencermountain commented 2 years ago

ahh, good catch. thank you.

spencermountain commented 2 years ago

fixed in 7.1.3 cheers