vuept
v1.2.0
Published
handy style of validation for prop types of Vue
Downloads
18
Readme
vuept
Another style to declare the props type for vue components.
Supported these types
import { num, str } from 'vuept'
//...
{
props: {
propA: Function,
propB: num.default(() => 'bar'), // {type: Number, default: () => 'bar'}
propC: str.required // {type: String, required: true}
}
//...
}