Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
prima-facie
7y ago
0 comments
Share
Props can have a type.
0 comments
default
newest
oldest
basil-rash
7y ago
The type is verified at runtime though
bradstewart
7y ago
It can also be verified at compile time when using vue-class-component.
lazarljubenovic
7y ago
If it's a primitive type, yes. Throw in a union, a generic, or a conditional and everything blows up.
j
/
k
navigate · click thread line to collapse