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
It is recommended to define all emitted events in order to better document how a component should work.
Though it has no effects on Vue2, but we can still add emits: string[] | Record<string, null | ((emitData: any) => boolean) > in defineComponent for better documenting and to avoid eslint-plugin-vue@V7 throwing warnings.
Also, we have to warn people in readme that this has no effects and just for smoothing the miragation.
Adding emits options will broke ThisType in defineComponent now.
while eslint will throw warnings if using vue/require-explicit-emits
The text was updated successfully, but these errors were encountered:
https://v3.vuejs.org/guide/component-custom-events.html#defining-custom-events
https://eslint.vuejs.org/rules/require-explicit-emits.html
Though it has no effects on Vue2, but we can still add
emits: string[] | Record<string, null | ((emitData: any) => boolean) >
indefineComponent
for better documenting and to avoid eslint-plugin-vue@V7 throwing warnings.Also, we have to warn people in readme that this has no effects and just for smoothing the miragation.
Adding
emits
options will broke ThisType in defineComponent now.while eslint will throw warnings if using
vue/require-explicit-emits
The text was updated successfully, but these errors were encountered: