ArraySupport seems to be missing a ts type
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**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.

I got the pr https://github.com/iamkun/dayjs/pull/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
Contributor guide
Research direction
Start with the linked CodeSandbox and the arraySupport plugin's TypeScript declarations, then compare the behavior with pull request #1401. The work is done when passing an array parameter works at runtime and type-checks without an error in the demonstrated usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100