-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix(vue-type-check): fix vue type check issues #87
Conversation
- 🏷️ Added helper type `EditorMode` - 🏷️ Added the `boolAttrs` explicitly to the props to enhance type check - 🐛 Fixed vue type check errors
Thanks for the efforts, I have a few questions:
|
I thought the binding value should be an object, correct? Also, I updated the
I'm still using the Please check the following links
Unfortunately there isn't a better way to do this, you need to explicitly define the props so that the IntelliSense and TypeScript can check and guide the users while using the library leading to a better DC |
The binding value can be of
Actually it can also be other types such as
I understand that this allows the use of
If there's no better solution, I suggest keeping it as it is since it doesn't resolve the two issues I mentioned. What do you think? |
- Updated the `propsGlobal` and `attrsGlobal` record key type to `string | number | symbol` - ⏪ Revert model value type. - ⏪ Revert `booleanAttrs` - ⏪ Use the `Mode` enum and remove `EditorMode` type.
I reviewed the document and found that the type of the model value in the examples is When declaring the type of the model value in the props it can't be
You are correct, updated the key type to
Gotcha, reverted to the
I agree, reverted this change since it's out of the scope of the fix, we can figure out a better way latter. |
Description
EditorMode
boolAttrs
explicitly to the props to enhance type checkLinked Issues
#86
Additional context
boolAttrs
explicitly to the props to enhance type check