← Back

vue/require-prop-types warning

In committed code, prop definitions should always be as detailed as possible, specifying at least type(s).

Examples

❌  Incorrect

<script>
    export default {
        props: ['status'],
    }
</script>

✅  Correct

<script>
    export default {
        props: {
            status: String,

            name: {
                type: String,
            },
        },
    }
</script>