We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can we add prop validator in Jsdoc example:
props:{ size: { type: String, default: null, validator: function(value) { const validSizes = [null, 'xs', 'sm', 'lg']; return validSizes.indexOf(value) !== -1; } } }
validator: function(value) { const validSizes = [null, 'xs', 'sm', 'lg']; return validSizes.indexOf(value) !== -1;
Currently, do we have any functionality where we can add a validator in Jsdoc?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can we add prop validator in Jsdoc
example:
props:{
size: {
type: String,
default: null,
validator: function(value) { const validSizes = [null, 'xs', 'sm', 'lg']; return validSizes.indexOf(value) !== -1;
}
}
}
Currently, do we have any functionality where we can add a validator in Jsdoc?
The text was updated successfully, but these errors were encountered: