Y
Hacker News
new
|
ask
|
show
|
jobs
by
prima-facie
2817 days ago
Props can have a type.
1 comments
basil-rash
2817 days ago
The type is verified at runtime though
link
bradstewart
2816 days ago
It can also be verified at compile time when using vue-class-component.
link
lazarljubenovic
2816 days ago
If it's a primitive type, yes. Throw in a union, a generic, or a conditional and everything blows up.
link