import {Binding} from './binding'; import {Constructor} from './lang'; export function bind(type: any) { return {toValue: function(toValue: T): Binding{return new Binding(type, {toValue}); } , toFactory: function(toFactory: Function, dependencies: any[] = []): Binding { return new Binding(type, {toFactory, dependencies}); }, toClass: function(toClass: Constructor): Binding { return new Binding(type, {toClass}); } } ; }