DecorateThis icon indicating copy to clipboard operation
DecorateThis copied to clipboard

JS Decorators library

Results 3 DecorateThis issues
Sort by recently updated
recently updated
newest added

It would be great to have an additional decorator, say @params, that would allow you to use a single decorator to typew the entire signature, ie ``` js @params(String, Number)...

Example taken from [MDN](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/rest_parameters): ``` js function multiply(multiplier, ...theArgs) { return theArgs.map(function (element) { return multiplier * element; }); } ``` Currently there's no way to typecheck _all_ of `theArgs`....

Ideally, i'd like to have decorators replace JSDocs for documenting code, which means we need a way to generate pretty docs from a decorated class or object. AFAIK, there are...

enhancement