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

Type of "year" slot is incorrect #867

Closed
Tsuyoshi84 opened this issue May 14, 2024 · 0 comments
Closed

Type of "year" slot is incorrect #867

Tsuyoshi84 opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Tsuyoshi84
Copy link

Tsuyoshi84 commented May 14, 2024

Describe the bug
The type definition of year slot seems to be incorrect.

The document says that value will be passed from the year slot.

image

I also confirmed that I can use value to show the year.
However, according to the type definition, I'm supposed to use year instead of value.

year(props: { year: number }): any;

Because of that, if I follow the document instruction, I get a type error.

To Reproduce
N/A

Expected behavior

I assume the type definition needs to be like this:

    year(props: { text: string; value: number }): any;

Screenshots

image

Desktop & mobile (please complete the following information):
N/A

@Tsuyoshi84 Tsuyoshi84 added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels May 14, 2024
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants