3 ms·
Props can have a type.
by wooptoo 8y ago
Props can have a type.
- basil-rash 8y agoThe type is verified at runtime though
- bradstewart 8y agoIt can also be verified at compile time when using vue-class-component.
- lazarljubenovic 8y agoIf it's a primitive type, yes. Throw in a union, a generic, or a conditional and everything blows up.