import { interfaces } from "../interfaces/interfaces" ; import { BindingWhenSyntax } from "./binding_when_syntax" ; class BindingOnSyntax < T > implements interfaces . BindingOnSyntax < T > { private _binding : interfaces . Binding < T > ; public constructor ( binding ) { this . _binding = binding ; } public onActivation ( handler ) { this . _binding . onActivation = handler ; return new BindingWhenSyntax < T > ( this . _binding ) ; } public onDeactivation ( handler ) { this . _binding . onDeactivation = handler ; return new BindingWhenSyntax < T > ( this . _binding ) ; } } export { BindingOnSyntax } ;