Hacker News new | ask | show | jobs
by prima-facie 2817 days ago
Props can have a type.
1 comments

The type is verified at runtime though
It can also be verified at compile time when using vue-class-component.
If it's a primitive type, yes. Throw in a union, a generic, or a conditional and everything blows up.