Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vuejs props declare prop with multiple types

...
props: {
  value: {
    type: String | Number | Boolean | Object, or [Number, String, Object]
    default: ''
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vuejs #props #declare #prop #multiple #types
ADD COMMENT
Topic
Name
4+7 =