refactor(render): ts’ify render api
This commit is contained in:
@ -22,8 +22,7 @@ export function makeDecorator(annotationCls) {
|
||||
}
|
||||
|
||||
export function makeParamDecorator(annotationCls) {
|
||||
return function() {
|
||||
var args = arguments;
|
||||
return function(... args) {
|
||||
var Reflect = global.Reflect;
|
||||
if (!(Reflect && Reflect.getMetadata)) {
|
||||
throw 'reflect-metadata shim is required when using parameter decorators';
|
||||
|
Reference in New Issue
Block a user