Closed Tsuyoshi84 closed 2 months ago
Describe the bug The type definition of year slot seems to be incorrect.
year
The document says that value will be passed from the year slot.
value
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.
https://github.com/Vuepic/vue-datepicker/blob/7eceb7271fcb5ade9a68d6821c97e313159043cb/index.d.ts#L404
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
Desktop & mobile (please complete the following information): N/A
Describe the bug The type definition of
year
slot seems to be incorrect.The document says that
value
will be passed from theyear
slot.I also confirmed that I can use
value
to show the year. However, according to the type definition, I'm supposed to useyear
instead ofvalue
.https://github.com/Vuepic/vue-datepicker/blob/7eceb7271fcb5ade9a68d6821c97e313159043cb/index.d.ts#L404
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:
Screenshots
Desktop & mobile (please complete the following information): N/A