dhlab-basel / JDNConvertibleCalendar

Different calendars can be freely converted using Julian Day Number
GNU Affero General Public License v3.0
4 stars 3 forks source link

feature (constructor signatures) #6

Closed tobiasschweizer closed 5 years ago

tobiasschweizer commented 6 years ago

This PR provides different signatures for the constructor so a calendar date can be instantiated from a JDN period or a calendar date period.

see https://www.typescriptlang.org/docs/handbook/functions.html#overloads