import { AbstractTransformPipe } from './abstract-transform.pipe' ; export class TrimStringsPipe extends AbstractTransformPipe { except ( ) { return [ 'password' , 'passwordConfirmation' ] ; } protected transformValue ( value ) { return typeof value === 'string' ? value . trim ( ) : value ; } }