hyper-react icon indicating copy to clipboard operation
hyper-react copied to clipboard

should we use class: Todo instead of type: Todo in param declaration

Open sollycatprint opened this issue 9 years ago • 2 comments

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

sollycatprint avatar Jun 13 '16 13:06 sollycatprint

@zetachang - I think we should at least offer class: as alternative to type:

catmando avatar Sep 07 '16 01:09 catmando

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".

zetachang avatar Oct 06 '16 09:10 zetachang