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

DayJS Timezone Typescript issue: Expected 0 arguments, but got 1. #1014

Closed
vupham84 opened this issue Aug 20, 2020 · 2 comments
Closed

DayJS Timezone Typescript issue: Expected 0 arguments, but got 1. #1014

vupham84 opened this issue Aug 20, 2020 · 2 comments

Comments

@vupham84
Copy link

We follow the sample in https://day.js.org/docs/en/plugin/timezone like this

dayjs("2014-06-01 12:00").tz("America/New_York")

It's working fine but Typescript is throwing an error below.

TS2554: Expected 0 arguments, but got 1.
Version: typescript 3.8.3
@iamkun
Copy link
Owner

iamkun commented Aug 20, 2020

Hi, this bug has been fixed in the latest version.

@iamkun
Copy link
Owner

iamkun commented Oct 23, 2020

I'll close this issue since it's been a while since it's been opened. Feel free to reopen if you have updates on this

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

2 participants