Open ameeey opened 3 years ago
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?
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?