Skip to content
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

Add prop validator in Jsdoc #452

Open
ameeey opened this issue Sep 22, 2021 · 0 comments
Open

Add prop validator in Jsdoc #452

ameeey opened this issue Sep 22, 2021 · 0 comments

Comments

@ameeey
Copy link

ameeey commented Sep 22, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant