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

utcOffset Interface error #1773

Open
XuCui123 opened this issue Jan 19, 2022 · 1 comment
Open

utcOffset Interface error #1773

XuCui123 opened this issue Jan 19, 2022 · 1 comment

Comments

@XuCui123
Copy link

I am using utcOffset in TypeScript project, but the interface of utcOffset may be error.

dayjs()
            .utcOffset(timeZone)
            .add(4, 'y')
            .format(patten);

node_modules/dayjs/index.d.ts utcOffset(): number

@XuCui123
Copy link
Author

error TS2554: Expected 0 arguments, but got 1. .utcOffset(timeZone)

error TS2339: Property 'format' does not exist on type 'number'. .format(patten);

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

1 participant