chore(build): migrated di to TypeScript
This commit is contained in:
14
modules/angular2/src/di/decorators.ts
Normal file
14
modules/angular2/src/di/decorators.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import {
|
||||
InjectAnnotation,
|
||||
InjectPromiseAnnotation,
|
||||
InjectLazyAnnotation,
|
||||
OptionalAnnotation,
|
||||
InjectableAnnotation
|
||||
} from './annotations';
|
||||
import {makeDecorator, makeParamDecorator} from '../util/decorators';
|
||||
|
||||
export var Inject = makeParamDecorator(InjectAnnotation);
|
||||
export var InjectPromise = makeParamDecorator(InjectPromiseAnnotation);
|
||||
export var InjectLazy = makeParamDecorator(InjectLazyAnnotation);
|
||||
export var Optional = makeParamDecorator(OptionalAnnotation);
|
||||
export var Injectable = makeDecorator(InjectableAnnotation);
|
Reference in New Issue
Block a user