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

[typescript] format function has no options parameter #13

Open
lou-jin opened this issue Aug 24, 2019 · 0 comments
Open

[typescript] format function has no options parameter #13

lou-jin opened this issue Aug 24, 2019 · 0 comments

Comments

@lou-jin
Copy link

lou-jin commented Aug 24, 2019

The format function seems to have missing an options parameter.

current format() definition on index.d.ts
format(template?:string): string

result
dayjs-ext_format-function

workaround

// @ts-ignore
return dayjs(dateString).format(format, { timeZone });

When using dayjs-ext I don't want to type // @ts-ignore on my code.
Would it be possible to add an options to format() definition on index.d.ts?

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