3 ms·
I think properties should allow direct constructor assignment. I think it looks better than strings. props: { name: String, age: Number }
by rtht 12y ago
I think properties should allow direct constructor assignment. I think it looks better than strings.
props: { name: String, age: Number }
- philip_roberts 12y agoThat works for native types but gets trickier for custom datatypes, and ones where you want to specify custom getters and setters for example, and then specifying some as strings and some as constructors gets messy. We do need to do some more documentation/cleanup around custom datatypes though for sure.