import { BindingScopeEnum } from "../constants/literal_types" ; import { interfaces } from "../interfaces/interfaces" ; import { BindingWhenOnSyntax } from "./binding_when_on_syntax" ; class BindingInSyntax < T > implements interfaces . BindingInSyntax < T > { private _binding : interfaces . Binding < T > ; public constructor ( binding ) { this . _binding = binding ; } public inRequestScope ( ) { this . _binding . scope = BindingScopeEnum . Request ; return new BindingWhenOnSyntax < T > ( this . _binding ) ; } public inSingletonScope ( ) { this . _binding . scope = BindingScopeEnum . Singleton ; return new BindingWhenOnSyntax < T > ( this . _binding ) ; } public inTransientScope ( ) { this . _binding . scope = BindingScopeEnum . Transient ; return new BindingWhenOnSyntax < T > ( this . _binding ) ; } } export { BindingInSyntax } ;