Skip to content

Add prop validator in Jsdoc #452

Open

Description

@ameeey

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions