k1r0s/kaop-ts

make param decorators optional (for babel users)

k1r0s opened this issue · 0 comments

k1r0s commented

isn't hard to provide a workarround to make kaop detect if developer used @adviceDecorator or @adviceParam. If any of this were provided kaop will inject first parameter as the metadata, and rest of parameters will be parameter decorators sorted as normal.

function myDecorator(metadata, param0, param1, param2) {
    
}