import { ValidationCondition } from "./ValidationCondition" ; export class WhenCondition < T > implements ValidationCondition < T > { constructor ( private expression ) { } shouldDoValidation ( input ) { return this . expression ( input ) ; } }