import { Properties } from 'csstype' ; const mapToProperty = < T extends keyof Properties < string | number > > ( property ) => ( value ) => { const styleRule = { [ property ] : value } ; return styleRule ; } ; export default mapToProperty ;