Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@Space-yg Space-yg released this 27 Feb 05:19
· 11 commits to main since this release

Added

  • Added this CHANGELOG.md.
  • SunriseSunset.APIParameters.date can now take a Date.
  • SunriseSunset.APIResponse can take a type parameter which is a status, or status of the response.
  • SunriseSunset.APIResponseFormatted can now take a type parameter which is boolean for whether the response is formatted or not.
  • getSunriseSunset function now accepts a Date type in the date parameter.

Edited

  • Replaced SunriseSunset.APIResponseNotFormatted with SunriseSunset.APIResponseFormatted<false>.
  • Changed APIResponseInvalidRequest, APIResponseInvalidDate, APIResponseInvalidTzid, and APIResponseUnknownError to type instead of interface.
  • Renamed types.ts to types.d.ts.