import IField from './' ; import { toMoney } from '../../convert' ; class Money implements IField < string , string > { private _value : string = '' ; set ( value ) { const intermediary = value ? value . toString ( ) . replace ( ',' , '.' ) : '0' ; this . _value = toMoney ( intermediary ) ; } get ( ) { return this . _value ; } } export default Money ;