iamkun / iamkun/dayjs

Incomplete Type definition for dayjs factory function

Open
#1,402 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Hi, searching for a solution to parse date strings of certain format,
I checked the documentation on parsing input using string + format ( https://day.js.org/docs/en/parse/string-format ).

It seems the type definitions are not up to date:
- passing an array of possible date formats will error
- 4th parameter for "strict comparision mode" is not supported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.