import { Pipe , PipeTransform } from '@angular/core' ; import { maskBr } from 'js-brasil' ; @ Pipe ( { name : 'rg' , } ) export class RGPipe implements PipeTransform { transform ( rgValue ) { return maskBr . rg ( rgValue ) ; } }