You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because in the types, update mode enum contains 'normal' as possible item. Nevertheless I don't see any mention in the documentation and in the code about his option. Furthermore I don't see 'default' as possible item for update mode in the types even is it's the default value in the code.
I think it's working because there isn't any explicit check in the code if the update mode is equals to 'default'.
Maybe I'm wrong but is there any reason why the types are defined with 'normal' instead of 'default'?
Documentation Is:
Please Explain in Detail...
Having a look to some issues and some samples, I see that the users are suing the update mode equals to
'normal'
.Chart.js/types/index.esm.d.ts
Lines 561 to 569 in 59a2d53
This is because in the types, update mode enum contains
'normal'
as possible item. Nevertheless I don't see any mention in the documentation and in the code about his option. Furthermore I don't see'default'
as possible item for update mode in the types even is it's the default value in the code.I think it's working because there isn't any explicit check in the code if the update mode is equals to
'default'
.Maybe I'm wrong but is there any reason why the types are defined with
'normal'
instead of'default'
?TS
default
reserved keyword?Your Proposal for Changes
Maybe the type should be changed as following:
Example
No response
The text was updated successfully, but these errors were encountered: