Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Added typescript typings for moment-holiday #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rwdalpe
Copy link

@rwdalpe rwdalpe commented Aug 30, 2017

Attempted to implement the typings and related tests in the same fashion that moment itself does.

Typings cover:

  • extensions to moment objects such as holiday, isHoliday, and so on
  • the holidays and modifyHolidays objects in the moment namespace

Also contains an npm script to ensure that the typings match expected usage.

Attempted to implement the typings and related tests in the same fashion
that moment itself does.

Typings cover:

* extensions to moment objects such as `holiday`, `isHoliday`, and so on
* the `holidays` and `modifyHolidays` objects in the moment namespace

Also contains an npm script to ensure that the typings match expected
usage.

TODO:

* Provide typings for the actual shape of holiday definitions
Update tests to cover that as well.

TODO: still not sure what the shape of `specifics` should be.
rwdalpe added a commit to rwdalpe/DefinitelyTyped that referenced this pull request Oct 28, 2017
PR upstream to add typings in the library has been open
for a while <kodie/moment-holiday#14>
without feedback.

Adding the typings here until that PR changes state.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant