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

Fix isBefore/isAfter types to support optional arguments #1929

Closed
wants to merge 1 commit into from
Closed

Fix isBefore/isAfter types to support optional arguments #1929

wants to merge 1 commit into from

Conversation

addiebarron
Copy link

Comparison functions isBefore and isAfter default to using now (dayjs()) when no arguments are provided. The current type declarations don't allow for 0 arguments. This PR makes those arguments optional in index.d.ts.

@codecov
Copy link

codecov bot commented Jun 6, 2022

Codecov Report

Merging #1929 (baee6d3) into dev (fff66d1) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               dev     #1929   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          181       181           
  Lines         2064      2064           
  Branches       538       538           
=========================================
  Hits          2064      2064           

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 fff66d1...baee6d3. Read the comment docs.

This pull request was closed.
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.

1 participant