hyper-react
hyper-react copied to clipboard
should we use class: Todo instead of type: Todo in param declaration
From @catmando on February 29, 2016 20:54
In writing documentation I realize we are at odds with Ruby terminology here.
Should we allow "class:" as an alias for "type:" in Param declarations?
If so should we eventually deprecate type?
Copied from original issue: zetachang/react.rb#131
@zetachang - I think we should at least offer class: as alternative to type:
Agreed on this. But the original inspiration is from https://github.com/ruby-grape/grape#supported-parameter-types , have no idea why they choose "type" instead of "class".