import { coerceNumberProperty } from '@angular/cdk/coercion' ; export function CoerceNumberProperty ( fallback ? ) { return function ( target , propertyKey ) : void { const _key = Symbol ( String ( propertyKey ) ) ; target [ _key ] = target [ propertyKey ] ; Object . defineProperty ( target , propertyKey , { get ( ) { return this [ _key ] ; } , set ( v ) { this [ _key ] = coerceNumberProperty ( v , fallback ) ; } } ) ; } ; }