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

ArraySupport seems to be missing a ts type #1425

Open
zhumengyue opened this issue Mar 22, 2021 · 3 comments
Open

ArraySupport seems to be missing a ts type #1425

zhumengyue opened this issue Mar 22, 2021 · 3 comments

Comments

@zhumengyue
Copy link

zhumengyue commented Mar 22, 2021

Describe the bug
Hi~ I want to use dayjs with typescript and arraySupport plugin, it works but there seems to be a problem with typescript. There is a demo: https://codesandbox.io/s/smoosh-pond-tc1rr?file=/src/App.tsx.

In the demo I used arraySupport plugin and tried to pass an array parameter. It works well in console, but there is a tip that I can not pass an array parameter to the function.

image

I got the pr #1401, but I don't know why it doesn't work.

How can I do with that?

thx!

Information

  • Day.js Version v1.10.4
  • OS: macOS
  • Browser chrome 89
@mfahlen
Copy link

mfahlen commented May 25, 2021

The PR was merged on March 10, but the latest published release is from January 22. Is there any plan on publishing this fix soon?

@iamkun
Copy link
Owner

iamkun commented May 25, 2021

will release soon

@f3oall
Copy link

f3oall commented Jan 7, 2023

Hey @iamkun , I have the same issue with the latest version.

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

No branches or pull requests

4 participants