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
<script>
exportdefault { props: { deviceId: {validator:value=> value ===null||typeof value ===Number, required:true, } },};
</script>
What did you expect to happen?
According to the documentation it should be possible to define a validator in place of a type and have the rule pass. This is not the case.
What actually happened?
[ESLint: test.vue]
Error 4,9: Prop "deviceId" should define at least its type. (vue/require-prop-types)
✗ 1 error, 0 warnings
Double-click on lines to jump to location, [F4] for next, [shift-F4] for previous.
[Finished in 1.0s]
The text was updated successfully, but these errors were encountered:
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
According to the documentation it should be possible to define a
validator
in place of atype
and have the rule pass. This is not the case.What actually happened?
The text was updated successfully, but these errors were encountered: