style(DI): idiomatic TS

This commit is contained in:
Victor Berchet
2015-06-17 10:12:06 +02:00
parent edd01615c3
commit ffd1ac425e
5 changed files with 13 additions and 19 deletions

View File

@ -3,6 +3,7 @@ import {
isBlank,
isPresent,
CONST,
CONST_EXPR,
BaseException,
stringify,
isArray
@ -30,7 +31,7 @@ export class Dependency {
static fromKey(key: Key) { return new Dependency(key, false, false, false, []); }
}
var _EMPTY_LIST = []; // TODO: make const when supported
const _EMPTY_LIST = CONST_EXPR([]);
/**
* Describes how the {@link Injector} should instantiate a given token.