Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing utils export in TS definitions #834

Merged
merged 1 commit into from
Feb 21, 2019
Merged

Add missing utils export in TS definitions #834

merged 1 commit into from
Feb 21, 2019

Conversation

davidspiess
Copy link
Contributor

@davidspiess davidspiess commented Nov 28, 2018

At the moment it's not possible to import LocaleUtils, DateUtils, ModifiersUtils in Typescript projects, because the utils export is missing in the definition file.
Fixes #812;

image

@codecov
Copy link

codecov bot commented Nov 28, 2018

Codecov Report

Merging #834 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #834   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          15     15           
  Lines         645    645           
  Branches      141    141           
=====================================
  Hits          645    645

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39ad48e...9502f23. Read the comment docs.

@DevanB
Copy link

DevanB commented Dec 6, 2018

Came here to find why these types weren't being exported. Happy to see a PR is opened. When can it be merged in? 😄

@johnjesse
Copy link
Contributor

johnjesse commented Dec 12, 2018

I think you can get to them by doing using the statics on DayPicker e.g. typeof DatePicker.LocaleUtils

@mhafer
Copy link

mhafer commented Dec 31, 2018

@DevanB I used DayPicker.DateUtils.addDayToRange(); not LocalUtils

@gpbl gpbl merged commit 626df97 into gpbl:master Feb 21, 2019
@gpbl gpbl added the v:patch label Feb 21, 2019
@davidspiess davidspiess deleted the ts-utils-export-fix branch February 21, 2019 10:27
kimamula pushed a commit to kimamula/react-day-picker that referenced this pull request Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants