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

[bugfix] Fix TypeScript warning #5628

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

Alanscut
Copy link
Contributor

Changes

  • Fix typescript warnings and add test cases

@marwahaha marwahaha changed the title [bugfix]Fix TypeScript warning [bugfix] Fix TypeScript warning Sep 15, 2020
@marwahaha
Copy link
Member

@Alanscut is this related to an existing issue?

@Alanscut
Copy link
Contributor Author

@Alanscut is this related to an existing issue?

no. there are 2 moment.d.ts files, I compared and validated locally, this PR could fix this warning.

@marwahaha
Copy link
Member

What warning are you talking about?

years?: number;
year?: number;
y?: number;
years?: numberlike;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this changed to numberlike?

@marwahaha
Copy link
Member

@Alanscut any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants