@@ -2,7 +2,7 @@ import {Map, List, MapWrapper, ListWrapper} from 'facade/collection';
22import { Binding , BindingBuilder , bind } from './binding' ;
33import { ProviderError , NoProviderError , InvalidBindingError ,
44 AsyncBindingError , CyclicDependencyError , InstantiationError } from './exceptions' ;
5- import { Type , isPresent , isBlank } from 'facade/lang' ;
5+ import { Type , isPresent , isBlank , bool } from 'facade/lang' ;
66import { Future , FutureWrapper } from 'facade/async' ;
77import { Key } from './key' ;
88
@@ -13,7 +13,7 @@ class _Waiting {
1313 this . future = future ;
1414 }
1515}
16- function _isWaiting ( obj ) {
16+ function _isWaiting ( obj ) : bool {
1717 return obj instanceof _Waiting ;
1818}
1919
@@ -62,7 +62,7 @@ export class Injector {
6262 return ListWrapper . createFixedSize ( Key . numberOfKeys ( ) + 1 ) ;
6363 }
6464
65- _getByKey ( key :Key , returnFuture , returnLazy ) {
65+ _getByKey ( key :Key , returnFuture : bool , returnLazy : bool ) {
6666 if ( returnLazy ) {
6767 return ( ) => this . _getByKey ( key , returnFuture , false ) ;
6868 }
0 commit comments