chore(reflection): tsfy tests
This commit is contained in:
24
modules/angular2/test/reflection/reflector_common.ts
Normal file
24
modules/angular2/test/reflection/reflector_common.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import {makeDecorator, makeParamDecorator} from 'angular2/src/util/decorators';
|
||||
|
||||
export class ClassDecoratorImpl {
|
||||
value;
|
||||
|
||||
constructor(value) { this.value = value; }
|
||||
}
|
||||
|
||||
export class ParamDecoratorImpl {
|
||||
value;
|
||||
|
||||
constructor(value) { this.value = value; }
|
||||
}
|
||||
|
||||
export function classDecorator(value) {
|
||||
return new ClassDecoratorImpl(value);
|
||||
}
|
||||
|
||||
export function paramDecorator(value) {
|
||||
return new ParamDecoratorImpl(value);
|
||||
}
|
||||
|
||||
export var ClassDecorator = makeDecorator(ClassDecoratorImpl);
|
||||
export var ParamDecorator = makeParamDecorator(ParamDecoratorImpl);
|
Reference in New Issue
Block a user